Changes the size of a dynamic array.
REDIM
[ SHARED
] array(subscripts) [ AS
typename] [, array(subscripts) [ AS
typename]]…
You can change the size of a dynamic array but not the number of dimensions or the data type.
The keyword SHARED
indicates that the array can be used by all procedures in the module.
array is the name of the array to resize.
subscripts specifies the array subscripts in the form
[lowerbound TO
] upperbound
Multidimensional arrays are supported.
typename is the array type: INTEGER, LONG, SINGLE, DOUBLE, STRING, or a user-defined type.
REDIM
erases the array’s previous values.
'$DYNAMIC
DIM box (1 TO 100)
'statements
REDIM box (1 TO 200)