Posted by: Jerry Lees
arrays, dimensional arrays, redim, VBScript Statements
The ReDim statement in VBScript allows you to declare a array, or a multi-dimensional array, in your code. Also, this statement allows you to re-declare the number of elements in the array at a later time in the code.
This is important because it also allows you to release memory or allocate more memory for use in your script.
As you use this statement, be sure to use the Preserve keyword if you wish to preserve the existing data in the array.
Below are examples: