Thanks for looking klaus. Sorry it is not clear, I am not finding it easy to explain. I did say 'part' of array to be Rect. The l,t,r,b are the Rect rectangle left etc.
The array has integers row col which are used to access each of the Things, colour and a Rect for each combination of row, col. There might be additional Things that I will add to the array for each row/col position.
I know how to dimension and use arrays but not how to initialize one part for an object.
I require, for each combination of row/col to store the colour and the Rect object. They are dissimilar things in the same array. Had they been Int's and strings there would be no problem, I believe I can store a mixture of anything in an array.
Here one is an object that has to be initialized and that is the difficulty.
I did have separate arrays for colour and Rects associated with the same row/col in each but it seemed an overkill when I 'should' be able to mix 'things' in a common array.
I want to use Canvas.DrawRect(aThings(row, col, 0), aThings(row, col, 1) ...)
not two arrays... Canvas.DrawRect(aRects(row, col), aColours(row, col)...)
and
Dim dRectA as Rect
dRectA.Initialize(...)
aThings(row, col, 0)= dRectA
does not work.
I found that as I traversed row/col the result in the debugger said not initialized.
I want to initialize aThings(row, col, 0) for each row/col to be a 'Rect' and each aThings(row, col, 1) is to be an Int for colour not also a Rect.
Probably still not clear.