ReDim
Redim allows you to resize an array. In this example we are re-declaring or re-dimming the arrShopping array to contain 11 elements.
ReDim arrShopping(10)
When you redim an array, the contents of the array will be lost, so use the “Preserve” keyword to prevent the array from being emptied when it is resized.
ReDim Preserve arrShopping(10)
Become a Member
Start learning about VBScript right now!
Become a Member and begin downloading our VBScript Videos Immediately!
These VBScript Videos are from our VBScript Product
|