User guide

32
VTB USER GUIDE
6.12 Text Tables
OBSOLETE
6.13 Structures
The STRUCTURES can be declared only as INTERNAL variables. The fields of a structure can be of any type except BIT and
pointer.
To declare a STRUCTURE open the STRUCTURE TABLES and define the NAME of the structure and all single elements we
need.
When a structure is declared, in the list of the variable types the NAME of the STRUCTURE will be showed, allowing to
define a new variable of all types declared as structure.
To use the elements of the structure it's necessary to write the NAME of the STRUCTURE followed by dot character (.)
and by the name of the field at which we want to refer.
It's also possible manage the structures with pointers (see POINTERS chapter).
Example:
Used Variables:
val1 as long
val2 as long
val3 as long
Tool as ToolSTRUCT declaration of a structure variable
Tool.wide=13
val1=Tool.wide
Tool.length=23
Tool.high=54
val2=Tool.length
val3=Tool.high