Array problem

BlitzPlus Forums/BlitzPlus Beginners Area/Array problem

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.

If you declare an array with Dim a(5) then the array has six elements: a(0) a(1) ... a(5).

When you refer to a(x) the index variable x must be in the range 0 to 5.
Anything else is an 'out of bounds' error.