Declares
array variables. When declaring arrays, remember that the array's
index starts from 0 and its last index is array length - 1. Array
variables and structures can only be global and therefore must
first be declared in the initial source code block. Array variables
can then be re-declared anywhere in any Sub in the program. The
same array can be re-declared many times and its size can be
changed. You can use ArrayLen to find the length (size) of an
array. Arrays of up to three dimensions may be
declared.
While
arrays cannot be passed as parameters to Sub and received as return
values they can be indirectly accessed by GetItem, GetLength and
SetItem which accept an array name as a string to identify the
array. This allows an array name to be passed as a parameter to a
Sub to define the array that the Sub should
manipulate.
Syntax:
Dim VariableName(Length1[, Length2 [, Length3]] )
Example:
Dim
items(10, 3, 2)