The Vic20 has 28 different error messages. Here are the meanings of the 28 error messages:
- BAD DATA
- The Vic20 found character data when trying to read numeric data from a file
- BAD SUBSCRIPT
- An attempt was made to refer to an element of an array whose index is outside of the range defined when the array was created
- CAN’T CONTINUE
- The CONT statement was executed when the program had either not been run, had been run and an error had occured, or had been edited
- DEVICE NOT PRESENT
- A command tried to access an IO device that was not available
- DIVISION BY ZERO
- Division by zero is undefined
- EXTRA IGNORED
- Too many items were entered in response to an INPUT statement, and the surplus was ignored
- FILE NOT FOUND
- If the file being searched for was on tape, the end-of-tape marker was reached without the file being found. If the file being searched for was on disk, the file does not exist.
- FILE NOT OPEN
- An attempt was made to access a file that was not open
- FILE OPEN
- A file with the specifed number is already open
- FORMULA TOO COMPLEX
- The formula is too complex for the Vic20, and must be split into smaller calculations
- ILLEGAL DIRECT
- An attempt was made to use the INPUT statement in direct mode
- ILLEGAL QUANTITY
- A number outside of the permitted range was used as the argument for a function
- LOAD
- The program on tape is corrupt
- NEXT WITHOUT FOR
- The variable specified in the NEXT statement does not match any specifed in a FOR statement
- NOT INPUT FILE
- An input command was executed for a file opened for output
- NOT OUTPUT FILE
- An output command was executed for a file opened for input
- OUT OF DATA
- READ was executed when no unread data was left
- OUT OF MEMORY
- There is not more memory available for variables or the stack
- OVERFLOW
- The result of a calculation was greater than 1.70141884×1038
- REDIM’D ARRAY
- An attempt was made to dimension an array already dimensioned
- REDO FROM START
- Character data was entered in response to a request for numeric data
- RETURN WITHOUT GOSUB
- The RETURN statement was executed without a prior GOSUB
- STRING TOO LONG
- A string cannot contain more than 255 characters
- SYNTAX
- The statement could not be parsed by the Vic20
- TYPE MISMATCH
- A string was used instead of a number, or vice-versa
- UNDEF’D FUNCTION
- A function that has not been defined was referenced
- UNDEF’D STATEMENT
- An GOTO or GOSUB statement refered to a line number that does not exist
- VERIFY
- The program on tape or disk differs from that in memory