|
-
Jan 29th, 2010, 10:50 PM
#1
Thread Starter
Member
Two-dimensional array question
Is it possible to have a two-dimensional array/list/collection such as the following.
The first dimension is to have 2 elements, 0 and 1. The second dimension I would like to be able to have a different number of elements for each of the elements in the first dimension.
To explain better, I'd like X in array(0, X) to go up to say 4 and Y in array(1, Y) to only go up to say 2.
So there would be:
array(0,0)
array(0,1)
array(0,2)
array(0,3)
array(0,4)
array(1,0)
array(1,1)
array(1,2)
but no array(1,3) or array(1,4).
I'd also need to be able to use Redim Preserve to increase the size of the second dimension for each of the first dimension's elements.
I suspect this is not possible but if it is it would be of benefit to me so I will be greatly appreciative of any assistance.
Could an array of arrays be the answer?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|