Accessing the structured data type and structure elements
If you want to declare a variable based on a structured data type (this is declaring a structured variable), enter the name of the structured data type (related to the example: Range
or RangeS
) as data type within the declaration of variables. You may initialize the structure elements within this declaration.
If you want to use structured variables in assignments, enter the name of the variable (e.g. VRange
) and the name of the structure element (e.g. min
) separated by the character .
(e.g. VRange.min
). You can assign a structured variable to another structured variable, if both data types are identical regarding the following:
-
number/order, name and data type of their structure elements
-
statement
{KeepElementOrder}
The other data of the structured data types, such as the →initial values of the structure elements, a description/comment of the data types and even the names of the data types, may differ.
Examples |
---|
|