simple structure question

BlitzMax Forums/BlitzMax Beginners Area/simple structure question

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Thanks for your help!

If anybody else need an answer to this question:
How to use a two dimension array with a type as element:

Strict
Const num:Byte = 10

Type stars
	Field r,g,b
EndType
Global star:stars[,]
star = New stars[num,num]

For Local i:Byte = 0 to num-1
	For Local j:Byte = 0 to num-1
		star[i,j] = New stars
	Next
Next

star[5,2].r = 100
Print star[5,2].r