TCE provides many different variable types.
In general, variables can be defined as class variables by placing them in the structure of a class. In addition, variables can be defined as local variables by declaring them with the keyword DIM anywhere within a function. In this case, each variable is given a type by the As operator. If multiple variables need to be defined, they can be specified, separated by commas.
Dim V1 As Double, V2 As String
Most variables have an attribute set to query or execute specific properties and functions for a variable Type.
For example, the length of a string variable, can be determined by querying the Length attribute.
Dim V1 As String, V2 As Long
V1 := "TAP.CON"
V2 := V1.Length
Result: V2 contains the value 7
Variables can be defined as containers of simple values (scalar) or as containers for lists.
Dim V1 As String, V2() As Long
V1 := "TAP.CON"
V2(0) := 10
V2(3) := 100
V2 := {10, 20, 30}
The smallest index for lists is index 0, and the maximum index is limited to 2^16 - 1 entries. Lists are automatically dimensioned and have Special Attributes for example to query the smallest and largest occupied index in the list.