In VB script, I'm trying to resize an array inside of an object (named itemList()). ReDim works for normal arrays, but I get an error when resizing an array inside of an object. I'm trying to imitate a struct, so my goal is to have some type of object/struct that has a dynamic array inside..
Class Person
Public name
Dim itemList()
End Class
Set person1 = new Person
person1.itemList(0) = "football" 'Works fine
ReDim person1.itemList(7) 'Error: "Expected "("