{qualifier} DIMX arrayname(expr1,...,exprn),type{,sizeexpr {,AUTO_EXTEND}}
{qualifier} DIMX arrayname(expr1,...,exprn),structname {,AUTO_EXTEND}
DIMX declares an array whose element size and extent may be determined at run time. The size of the array can be changed explicitly after the initial DIMX using REDIMX or, with the AUTO_EXTEND keyword, it can be extended automatically.
Arguments
qualifier
An optional keyword to qualify the scope and longevity of the array. Valid qualifiers are STATIC, PRIVATE and PUBLIC. (See MAP Statement Extensions)
expr1,...,exprn
One or more expressions (literal values, variables or arithmetic expressions) evaluated when the statement is encountered at runtime. The number of expressions given determines the number of dimensions of the resulting array.
type
standard variable types (F, B, X, S, I)
sizeexpr
Arithmetic expression (evaluated at runtime) for the size of each element in the array
structname
Name of a structure previously defined with DEFSTRUCT. See Defined Structures and Dynamic Array of Structures.
AUTO_EXTEND
This keyword (case insensitive) causes the array to be automatically extended as required by direct Assignment Statements. See notes below for more details.
See Also
Subtopics