Limitless Array

BlitzMax Forums/BlitzMax Beginners Area/Limitless Array

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.

Is it possible to create a limitless array? For instance, when you create an array you have to specify what its maximum is (unless it's empty) like so: MyArray[30]
That array would have a maximum of 30 'entries'. Is there a way to make it unlimited? I ask because in my gorilla remake I store all the buildings in an array of a type, and I let the user dicide how many buildings there are, up to a mamimum of 30. It works fine, 30 is more than enough, but I'm just curious, what if I wanted the users to select as many buildings as they wanted, and are not limited to 30?

EDIT: I suppose I would just create a new array with the max number the same as the number of buildings the user wants, instead of just editing the same array...