how would you create a 2d or 3d array. i know how to do it in c++, thats really simple, but in vb6 i cant think of a way to create a multidimensional array...
anyone know?
Printable View
how would you create a 2d or 3d array. i know how to do it in c++, thats really simple, but in vb6 i cant think of a way to create a multidimensional array...
anyone know?
No one's ever sucessfully figured out how to do it....
:D
try this
Dim MyArray(9,9,9) as Byte
Creates a 10x10x10 array of bytes.
Dim TwoDeeArray(100,100)
Dim ThreeDeeArray(100,100,100)
TwoDeeArray(1,1,1) = "hi"
TwoDeeArray(1,1,5) = "world"
and so on.
o wow 3 people posted at the same time
yes, but mine was going to be more fun...
wow, 3 posts all at once...its a conspiracy!
thanks for your help...i was trying
VB Code:
Dim MyArray(9)(9)(9)
:p
thanks everyone