Rezising Arrays and getting Array Sizes

BlitzMax Forums/BlitzMax Beginners Area/Rezising Arrays and getting Array Sizes

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.

you can use dimensions() to get the array dimensions. :S
Strict

Local array:Int[20,33,4,10,6]

Print "Total Dimensions = "+array.Dimensions().Length
For Local dim:Int=0 Until array.Dimensions().Length
	Print "Dimension "+(dim+1)+" Length = "+array.Dimensions()[dim]
Next