First hello and problem

BlitzMax Forums/BlitzMax Beginners Area/First hello and problem

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.

Hi, I'm now slowly trying out BlitzMAX as I believe my next game will be created in this language.
Already (of course) I'm stumbling into problems and am thinking if you could just point out what am i doing wrong here cause I just don't get the thing with dynamic arrays.
I have 3 different types here and in the 3rd (TPond) I'm trying to write a normal Create function but it just won't let me create an array of objects on the fly. What am i doing wrong? The errormessage I receive is: "Unable to convert from 'TSquare Array' to 'TSquare Array'"

Type TObject Abstract 
	Const CTILE = 1
	Field Mesh
	Field Typ
	Field X
	Field Y
End type

Type TSquare Extends TObject
	Field Obj:Object
End Type

Type TPond
	Const MaxSquareWidth = 80
	Const MaxSquareHeight = 20
	Field Squares:TSquare[]
	
	Function Create:TPond(SqWidth,SqHeight)
		Local Temp:TPond=New TPond
		Temp.Squares=New TSquare[SqWidth,SqHeight]
	End function
End Type