Hi Guys,
Got a fun new question about arrays today.
I have an array:
MainArray(1 to 25)
What I am hoping to get is the following:
MainArray(1 to 25).SubArray1(1 to 3, 1 to 10)
MainArray(1 to 25).SubArray2(1 to 6, 1 to 5)
MainArray(1 to 25).SubArray3(1 to 3, 1 to 5)
MainArray(1 to 25).SubArray4(1 to 4, 1 to 15)
I have it working with one Sub Array only at present:
Opening this up for any advice and dicussion thanks.
Got a fun new question about arrays today.
I have an array:
MainArray(1 to 25)
What I am hoping to get is the following:
MainArray(1 to 25).SubArray1(1 to 3, 1 to 10)
MainArray(1 to 25).SubArray2(1 to 6, 1 to 5)
MainArray(1 to 25).SubArray3(1 to 3, 1 to 5)
MainArray(1 to 25).SubArray4(1 to 4, 1 to 15)
I have it working with one Sub Array only at present:
Code:
Option Base 1
Private Type arrayType
SubArray1() As String
End Type
Sub Array_Array()
Dim TLArray(25) As arrayType
For i = 1 To 25
ReDim Preserve TLArray(i).SubArray1(3, 10)
Next i
For i = 1 To 25
For x = 1 To 3
For y = 1 To 10
TLArray(i).SubArray1(x, y) = "Stuff Goes Here"
Next y
Next x
Next i
End Sub
Last edited: