Quote Originally Posted by dday9 View Post
Answer: You will still need to use an Array, however you will need to implement the ReDim Preserve operation. ReDim Preserve will redeclare the array while resizing the collection to a new size at the same time preserving the existing values. The following is a code snippet showing how ReDim Preserve is used:
Code:
Dim initializedArray() As Integer = {1, 2, 3, 4, 5}
ReDim Preserve initializedArray(initializedArray.Length - 3)
No idea about .NET, but i remember from vb6, that ReDim Preserve was "expensive" (because you're throwing Data around in Memory)
Is that still the case with .NET?

in vba/vb6 i usually use a "overdimensioned" Array while keeping count of the non-empty members