I have an array of arrays... not a mult-dimensional array. I want to be able to dynamically redimension each array, but VB doesn't like how I'm doing it. I think it's not possible, but if anyone knows how, it would save me from rewriting a lot of code.
I want to be able to do this:
Like this:
arr(9)(12)
Not like this:
arr(9, 12)
VB Code:
Private arr() As Variant Sub AddArrayDimension(ArrayIndex As Long) Redim Preserve Array(ArrayIndex)(Ubound(Array(ArrayIndex)) + 1) End Sub
Anyone have any good ideas about how to do this specifically?




Reply With Quote