Skip to content
Craig Edwards edited this page Apr 28, 2023 · 3 revisions

REDIM

REDIM variable-name,integer-expression

Extend or reduce the size of an array of variables to the new size defined by the expression. If you shrink the array to a size less than it's current size, any elements between the old maximum and new maximum are permanently lost. The type of variables stored in the array is determined by the type of variable-name. Arrays are zero-indexed and range checked, so the lowest value you may store in an array is 0 and the highest is integer-expression - 1. Calling REDIM with the existing size (e.g. not changing it's capacity) is an non-op.

Clone this wiki locally