Returning the number of elements in an array

Blitz3D Forums/Blitz3D Beginners Area/Returning the number of elements in an 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.

Arrays ARE resizable in Blitz. Do another dim on it, and tada, you have resized it.
There is no built-in command to return its current size though, so retaking the example of 'Insane Games', your number of elements is in 'arraySize', and you'll have to set it to the right value by yourself each time you redime the array.