Yes, because the data type of items is not identity, so I think ArrayList is a solution.
Back to my problem. Please show me what is wrong if I implement the code as below. I hope through the explanation, I can learn some technique in VB.NET.
arrSmallArrays(iItem) = New System.Collections.ArrayList
Thanks.
Since you want to use ArrayList and the idea to create ArrayList is to skip the boundary of the array, so it's weird if define an ArrayList with fixed length!!
It means, you should not define a aArrayList[20].
I know your problem is because you have not instantiated the first ArrayList :), it's fairly simple. The code for the first line when you declare arrSmallArrays As New....., but you didn't.
Then if you want to add an ArrayList to the main ArrayList, the code should like:
aChildArray As New ArrayList
arrSmallArrays.Add(aChildArray)
It should solve your problem.
cheers.