15 Subscript

If you try to access an element of an array less than zero or greater than the size of the array you will generate this error. Both lines 20 and 30 of the following example would give rise to this error message.

10 DIM test(10)
20 test(-4)=20
30 test(30)=10