Loading...
 

Access and navigation

Many InstantView® statements use expressions that describe access to data and methods of the objects in C++ syntax, allowing navigation through the objects:

  1. if the data member (name1) is an object, its member (name2) is accessed with
    name1.name2
    If name2 refers to a slot, this name must be known as a slot in the global dictionary, i.e. defined in the initialisation file (CLASSIX.INI).
  2. If the data member is a pointer to an object, its member name2 is accessed with
    name1->name2
  3. the nth element of a collection name1 is referred to as the nth element of a collection name1 is referred to with
    name1[n]
    and to a member (name2) of this element with
    and to a member (name2) of this element with
    name1[n].name2
    where n is a natural number from 0 to 9 or a special variable a, b, ..., z. The values of these index variables are changed with SetIndex, IncrIndex and DecrIndex. calls of a parameterless member function can be placed anywhere (with return value Object or Collection)
    calls to a parameterless member function can be placed anywhere (with return value Object or Collection). at the end of the printout can be confirmed with
    at the end of the expression can be a
    name1[n]
    to the nth bit of an element of the type INTEGER, SHORT, CHAR, ENUMSHORT or ENUMCHAR can be accessed.
    For an element of the class CXB_MULTIPLE_STRING, the nth substring (the nth language) is accessed. If you do not want to change the data members directly, but via an access function, this function must appear as the last term of the printout:
    If one does not want to change the data members directly, but via an access function, this function must appear as the last term of the expression:
    ... ZFun()
    An access function is distinguished from a function according to (5) by the entry with signature sgnMA in the method dictionary.