Any easier way to make an array of a type?

BlitzMax Forums/BlitzMax Beginners Area/Any easier way to make an array of a type?

Mr. Write Errors Man(Posted 2005) [#1]
This is how I create an array of a type at the moment:

Type myType
	Field X:Int
	Field Y:Int
EndType

Global Locations:MyType[10]

For Local A:Int = 0 To 9
	Locations[A] = New myType
Next


Is there a way to get rid of the For-Next loop part? It gets tedious after a while.


Grovesy(Posted 2005) [#2]
Not that i can think of without going inline code, but thats bad programming practice!


Duckstab[o](Posted 2005) [#3]
http://www.blitzbasic.com/Community/posts.php?topic=48085

Current topic have a read