You asked the wrong question if your goal was to solve your problem. Others rightly focused on the real issue. But clearly you think focusing on how arrays are allocated will help solve your problem. So, here's something to think about.
Consider a N dimensional matrix, declared as Dim X (dimension-1, dimension-2, ..., dimension-N)
The stack contains a pointer(*) to the Nth dimension, which is allocated as a 1-D vector of pointers.
Each pointer references a one dimensional vector that represents the N-1th dimension, each element of which is a pointer.
Each pointer in the N-1th dimension is also a pointer that points to a 1D array of pointers that represent the N-2nd dimension.
The process continues all the way down to the 2nd dimension.
The 2nd dimension consists of a 1-D vector of pointers, each of which points to a 1D vector of the declared data type of the matrix.
Now, you tell us. How does that help solve your problem?
(*) I would not be surprised if the implementation uses handles rather than pointers. If I were designing the system, I would almost certainly use handles.
I appreciate all the help, but...
nothing to do with how an array is stored? I ASKED how an array was stored -- it's right there in my first post.
My password generator works famously. But I got curious about how the program stores the array, so I asked about it.
Now I'm curious how to store stuff in the registry, but I guess I'll just go search msdn....
thanks all, and have a great weekend.
And never forget 9/11.