i have an array that i want to copy in two-dimensional (like jagged) this is my code :
Dim cB(1000000) As Double
Dim buffer(50, 1000000) As Double
For I = 1 To 1000000
cB(I) = CInt(Int((50 * Rnd()) + 1))
Next
I can use a for to copy cB to buffer. like this code :
For I = 1 To 10
For j = 1 To 1000000
buffer(I, j) = cb(j)
Next
Next
but i want to know is there any faster method to do this? in vb.net or C# i could use List. is there some thing like this in vb6.0?
thanks.