. – Operator and !– Operator

Concerns

The point operator addresses an element of a TCE object or COM object.

Example:

There is an object definition named Color of the Class Type Color. In the color class, a feature RAL is defined.

Then the string feature RAL can be accessed via the following program code:

RALCode := Color.RAL

The point operator can also be used to access attributes as well:

RALCode := Color.RAL.Mid(4, 4)

Here, for example, four characters are read out from the fourth character of the content of the feature.

If you want to access the attributes of an object, it may be possible for a feature of the object to have the same name as the attribute. Then you can target the attribute with the ! character.

Retrieves the value of the feature Description of the object Color.

Name := Color.Description

This statement retrieves the value of the attribute Description of the object Color.

Name := Color!Description