|
-
Dec 23rd, 2002, 11:32 AM
#1
Thread Starter
Hyperactive Member
How can I declare dynamic, multidimensional arrays?
How can I declare dynamic multidimensional arrays?
And how do I re-dim them afterwards?
-
Dec 23rd, 2002, 11:34 AM
#2
You dim them the same as a normal dynamic array. But, you can only re dim the second element, so the first time you re-dim it, make sure the first element is going to be big enough.
-
Dec 23rd, 2002, 12:00 PM
#3
Thread Starter
Hyperactive Member
Are you sure I can only re-dim second element?
I tried it and it seems that I can redim both of them.
-
Dec 23rd, 2002, 12:03 PM
#4
You can preserve only the last dimension (2nd if two dimensions, 3rd if three, etc.) when you redim. If this is too much of a constraint try nesting dynamic arrays.
-
Dec 23rd, 2002, 12:16 PM
#5
Thread Starter
Hyperactive Member
Actually, I don't need to preserve any dimmension.
I just want to be able to re-dim both of them.
So if I don't need to preserve, can I re-dim with new dimmensions?
-
Dec 23rd, 2002, 12:26 PM
#6
PowerPoster
Well
Yes, if you do not need the preserve the contents you can redim the array the whatever specification you need...
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
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
|