
07-31-2012, 11:43 AM
|
 |
Sinecure Expert
Super Moderator * Guru *
|
|
Join Date: Jun 2003
Location: Upstate New York, usa
Posts: 7,714
|
|
|
What does it matter?
What type is it an array of arrays of.
When you create the array of arrays, you have to initialize the subarrays to an array of something anyway, so I don't know if it makes any sense to Redim the subarray dimension like that since it is meaningless, as far as I'm concerned.
Once you assign the subarray to the main array entry, the dimension you gave the subarray will be what it is, regardless of what you put in the redim statement.
That is the main point of arrays of arrays, it allows ragged arrays (each subarray can be a different dimension).
Perhaps for your needs, what you really want is a 2-dimensional array.
If you declare it as a 2-dimensional array
Dim heats (LBSessionRaces -1,0)
And then later change the size of the second dimension, with the keyword Preserve, then the second dimension will be resized, but the already filled data will remain.
ReDim Preserve heats(LBSessionRaces - 1,x)
|
__________________
There Is An Island Of Opportunity In The Middle of Every Difficulty.
Miss That, Though, And You're Pretty Much Doomed.
|