Variable Array Declaration
Arrays of variables are declared within a
CitectVBA file module, function, or subroutine, using the
dim statement with parentheses
positioned after the array name, in the following syntax:
Dim <ArrayName>( [<Subscripts>] ) [As <DataType>]
dimis the required variable declaration statement BASIC keyword.
<ArrayName>represents the required name of the array being declared (dimensioned).
( )are the required parentheses to hold the array subscript range (dimensions).
<Subscripts>represents the optional subscript ranges and dimensions for the array.
Asis the optional As statement keyword declaring the array data type.
<DataType>represents the optional CitectVBA data type declaration for the array.
In the variable array declaration statement:
placeholder> ) should be replaced in any actual code with the value of the item that it describes. The arrow brackets and the word they contain should not be included in the statement, and are shown here only for your information.
[ ]) are optional. The square brackets should not be included in the statement, and are shown here only for your information.
Fixed Size Arrays
Dynamic Size Arrays
Arrays of Variables