I need help with arrays. I cannot seem to figure out how to create 2D arrays in VB6. Firstly, is it possible?
Thnak you.
Deiva
Printable View
I need help with arrays. I cannot seem to figure out how to create 2D arrays in VB6. Firstly, is it possible?
Thnak you.
Deiva
Hi deiva,
I don't have VB6, but in VB5 is like this ...
Dim myArray(2, 2) As Integer
myArray(1, 1) = 3
myArray(1, 2) = 4
myArray(2, 1) = 5
myArray(2, 2) = 6
Debug.Print myArray(1, 1)
Debug.Print myArray(1, 2)
Debug.Print myArray(2, 1)
Debug.Print myArray(2, 2)
Does it help ?
Keiko