In VB6.0 Anybody Know how to program an irregular size and shape? Like a two-dimensional array might need six items in the first row, three in the second, four in the third and so forth. Thank you.
It's Two-dimensional Arrays. And I believe it need use Irregular Linked Lists. Anyone have any idea about it? Thank You!
Ex 1: ReDim arrTest(1 To 3) For i = 1 To 3 Select Case i Case 1 nCount = 6 Case 2 nCount = 3 Case 3 nCount = 4 End Select ReDim arrSecond(1 To nCount) arrTest(i) = arrSecond Next ... arrTest(1)(6) = ... Ex 2. arrTest = Array(Array(1, 2, 3, 4, 5, 6), Array(1, 2, 3), Array(1, 2, 3, 4)) ... arrTest(0)(5) = ... 亦可用相同觀念延伸類似方法,或是改用物件類別。
螜祥怮隴啞,郅賸珂.