How do I redim preserve a multidimentional array? Does anyone know? Thanx in advance!
Printable View
How do I redim preserve a multidimentional array? Does anyone know? Thanx in advance!
As far as I remember, I could be wrong, though, you can only redim the second dimension (in a 2 dimensional).
You're joking right?
No.
I'll do a search and see if I can find the thread for you.
He's not. From MSDN:
Quote:
If you use the Preserve keyword, you can resize only the last array dimension and you can't change the number of dimensions at all.
Here's one thread: http://www.vbforums.com/showthread.p...hreadid=214320
There's many more of them, probably with the same answer.
If you can't get around that by rearranging how you store the data in the array, then go with an array of UDT's...
... Or classes. There are some works-around... if you're willing to look for them and think while coding.Quote:
Originally posted by nemaroller
If you can't get around that by rearranging how you store the data in the array, then go with an array of UDT's...