I am using Label objects with black or white background colors for the cells. I just copied&pasted them to form a grid, which VB6 automatically creates a 1D 'control array'.
so now I have an array cell(0 To 63) with Label objects inside.
But I want to put those Labels in a 2D array.. I tried using a For loop
Code:
Dim Board(0 To 7, 0 To 7) As Label
Dim counter As Integer
For i = 0 to 7
For j = 0 To 7
Board(i, j) = cell(counter)
counter = counter + 1
Next j
Next i
but that throws an error, in the line 'Board(i, j) = cell(counter)