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...
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...