An array is one object with 1 or more elements
Would defineCode:Dim myObject(4) as Object
myObject(0)
myObject(1)
myObject(2)
myObject(3)
myObject(4)
You can use redim to change the number of elements at runtime.
This will erase any values stored in the array. If values need to be retained then you can use the Preserve keywordCode:ReDim myObject(10)
Code:ReDim Preserve myObject(10)




Reply With Quote