ReDim name(dims),...
Resize an array.
The name is the name of an array variable. dims are the new dimensions, as a list of integer expressions.
Note that you can change the size of the array, but not the number of dimensions: a one-dimensional array will stay one-dimensional, and accept only ReDim commands that specify one dimension.
Current values in the array are kept if their position also exists in the new array. If you enlarge the array, new positions are filled with EMPTY. If you shrink the array, excess positons are deleted.
For example:
Dim a(10) % Make array with 10 elements ReDim a(20) % Make it have 20 elements
Changing an array's first (or only) dimension is very efficient. Changing the shape of an array will have to move data around and therefore be slow.
See also: Elementary Commands