GETATTR

Use

GETATTR ( <object parameter> , <attribute> , <parameter> ).

This command assigns the value of a public instance attribute <attribute> of a global class to a parameter <parameter>.

A prerequisite is the instantiation of the class and assignment of the object to a parameter <object parameter>. This is usually done using the CREATEOBJ command.

If <attribute> designates a structured parameter, the contents of all the fields are copied to the fields with the same name in <parameter>.

<attribute> can be a path – for example, <structure>-<field> to address parts of a structure. Here, the separator is a hyphen. The path can also have other classes. In this case the separator is an object component selector (->) – for example, <class>-><field>.