9, SUBSCRIPT OUT OF RANGE

Commodore Amiga

Severity: Minor

What it means

Amiga BASIC error 9.
Commodore's manual gives three causes: a subscript outside the dimensions of the array, the wrong number of subscripts, or a subscript on a variable that isn't an array.

Affected Models

  • Amiga computers with Amiga BASIC, written by Microsoft for Commodore

How to Fix It

  1. Is the array dimensioned?
    Without DIM, subscripts go up to 10.

  2. Make the DIM larger, or correct the subscript.

  3. Compare the number of subscripts with the DIM line.