Method New

BlitzMax Forums/BlitzMax Beginners Area/Method New

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.

No, it can't take parameters, you're better off making a create function instead.

Type myType
	Field a:Int
	Field b:Int
	
	Function Create:myType(a:Int , b:Int)
		Local temp:myType = New myType
			temp.a = a
			temp.b = b
		Return myType
	End Function
End Type


Local instance:myType = myType.create(10, 20)