: I might not be getting you right so you might have to clarify... If you use () after a declaration you saying the object is an array, if you size it in declaration this should be allocated in the stack.
:
:
: Dim Foo as String() 'no instance
: Dim Foo2() as String ' no instance
: Dim Foo3(9) '10 item array 'instance
:
:
: If the array is not sized there is no instance of the array object and it will have no instance. You can of course resize an array which would then be on heap...
:
:
: Redim Foo(9) '10 items
:
:
: Until items are given references the array is emtpy so all items in it are nothing, although the array itself has an instance.
:
:
: foo(0) = "Item One"
: foo(1) = "Item Two"
:
: Redim Preserve foo(19) ' keep references in array
: Redim foo(19) ' releases all references
:
:
: Might not be what you were asking hope it helps.
:
: ~rlc
:
:
there is also a distinction between a static array - MyArray(8) of 9 elements, a dynamic array - MyArray() which can be redimed, and the array class - MyArray as Array