Hi guys,
I am playing with putting an array within an array e.g. TLArray(i).SubArray(3,100)
the TLArray will have 20 Sub Arrays. The SubArrays will have 300 entries each in total (3 sets of 100).
Just how much of a memory hog do you guys think this would be?
I was originally thinking of doing: MyArray(20,3,100) would that be a better solution?
Thanks guys.
All thoughs greatly appreciated.
I am playing with putting an array within an array e.g. TLArray(i).SubArray(3,100)
Code:
Option Base 1
Private Type arrayType
SubArray() As String
End Type
Sub Array_Array()
Dim TLArray(20) As arrayType
For i = 1 To 20
ReDim Preserve TLArray(i).SubArray(3, 100)
Next i
For i = 1 To 20
For x = 1 To 3
For y = 1 To 100
TLArray(i).SubArray(x, y) = "Stuff Goes Here"
Next y
Next x
Next i
End Sub
Just how much of a memory hog do you guys think this would be?
I was originally thinking of doing: MyArray(20,3,100) would that be a better solution?
Code:
Sub Multi_Array()
Dim SubArray() As String
ReDim Preserve SubArray(20, 3, 100)
For i = 1 To 20
For x = 1 To 3
For y = 1 To 100
SubArray(i, x, y) = "Stuff Goes Here"
Next y
Next x
Next i
End Sub
All thoughs greatly appreciated.