Dim

Definition of the array variables is carried out.

Dim <Array Variable Name> (<Maximum Value of Subscript>[, <Maximum Value of Subscript>[, <Maximum Value of Subscript>[, <Maximum Value of Subscript>]]]) 

Parameters
<Array Variable Name>
Variable name to be used as the array (Array Variable Name)
<Maximum Value of Subscript>
The maximum value of the 1st dimension subscript (integer)
<Maximum Value of Subscript>
The maximum value of the 2nd dimension subscript (integer)
<Maximum Value of Subscript>
The maximum value of the 3rd dimension subscript (integer)
<Maximum Value of Subscript>
The maximum value of the 4th dimension subscript (integer)

Return Value
None.

Description
Specify the variable name to be used as the array in <Array Array Variable Name>.
The array will be secured in the range from 0 to ... <Maximum Value of Subscript>.Thus, the number of array elements will be the <Maximum Value of Subscript> +1.
Declare the array variable for the maximum 4th dimension.
Even if arrays and variables have the same names, they are handled as separate entities.
Even if the dimensions are different, if the variable names are the same, they will be recognized as the same array.
Defined arrays are freed using the Erase command.
When a declared, existing array is re-defined without freeing it, the array defined the most recently will be valid.In this case, the array defined before will be freed and re-defined.
Multiple arrays can be declared at one time.
Example: Dim A&(100),B&(100),C#(200)

Example
Declare an array.
      Dim XY&(3)
        Dim XY#(7,15)
        Dim CHARA$(31,63,127,255)