Why use redim when creating an array of arrays?
Redim is normally used when you don't know the size of the target array in
advance, so you extend it (Redim Preserve) as you go along.
Without seeing the code, it is difficult to offer any more info.
--
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
"Joe Dunfee" wrote in message
...
I am working on a project where I need to do an array of an array. I've
done
some reason, and see that the general approach is to create the
sub-arrays,
and then set each of the sub-arrays equal to an element in the parent
array.
I've seen two approaches, one being in the thread titled "jagged arrays",
and
the other using the redim command titled, "How do you create an Array of
Arrays?".
I understand the first method, but I don't understand why the redim
command
is used in the other. It seems a bit more complex, but does seem to be
the
prefered method in all the articles I've read about this subject. Is
there
some benefit I will be missing if I don't use the redim method?
Joe Dunfee
|