Growing arrays

BlitzMax Forums/BlitzMax Programming/Growing arrays

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.

Bah...I just came here to post that too hehe. The [..] did the trick.

I wish the BMax docs were online too.

Local array:Int[]

array = New Int[5]
array = array[..array.length+1]

For i = 0 To array.length-1
	array[i]=i+1
Next

For i = 0 To array.length-1
	Print array[i]
Next