Variable size arrays as a field

BlitzMax Forums/BlitzMax Programming/Variable size arrays as a field

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.

Well to make the array start at whatever size you want you only have to do this:

Field grid:TMyType[,]

thing.grid = new TMyType[n,n]

But of course if you want to change the size later you lost its data.