APPENDIX A
Error Messages
These error messages are printed by BASIC You can also PRINT
the messages through the use of the ERRS() function. The error
number refers only to the number assigned to the error for use with
this function
ERROR # ERROR NAME
1
TOO MANY FILES
There is a limit of 10 files
OPEN at one time
2
FILE OPEN
An attempt was made to open
a file using the number of an
already open file.
3
FILE NOT OPEN
The file number specified in
an I/O statement must be
opened before use.
4
FILE NOT FOUND
No file with that name exists
(disk)
5
DEVICE NOT PRESENT The required I/O device not
available.
6
NOT INPUT FILE
An attempt made to GET or
INPUT data from a file that
was specified as output only.
7
NOT OUTPUT FILE
An attempt made to send
data to a file that was speci-
fied as input only
8
MISSING FILE NAME
An OPEN, LOAD, or SAVE to
the disk drive generally re-
quires a file name.
9
ILLEGAL DEVICE
An attempt made to use a
NUMBER
device improperly (SAVE to
the screen. etc.)
10
NEXT WITHOUT FOR
Either loops are nested in-
correctly. or there is a variable
name in a NEXT statement
that doesn't correspond with
one in a FOR
SYNTAX
A statement is unrecogniza-
ble by BASIC This could be
because 01 missing or extra
parenthesis, misspelled
keyword, etc.
12
RETURN WITHOUT
A RETURN statement en-
GOSUB
countered when no GOSUB
statement was active.
13
OUT OF DATA
A READ statement en-
countered, without data
left unREAD
14
ILLEGAL QUANTITY
A number used as the
argument of a function or
statement is outside the
allowable range.
15
OVERFLOW
The result of a compu-
tation is larger than the
largest number allowed
(1.701411833E+38)
OUT OF MEMORY
Either there is no more room
for program and program
variables, or there are too
many DO. FOR, or GOSUB
statements in effect.
17
UNDEF'D STATEMENT A line number referenced
doesn't exist in the program.
18
BAD SUBSCRIPT
The program tried to refer-
ence an element of an array
out of the range specified by
the DIM statement
19
REDIM'D ARRAY
An array can only be DIMen-
sioned once. If an array is
referenced before that array
is DIMd. an automatic DIM (to
10) is performed.
20
DIVISION BY ZERO
Division by zero is not allowed.
21
ILLEGAL DIRECT
INPUT or GET statements are
only allowed within a program.
162
163
Need help?
Do you have a question about the Commodore 16 and is the answer not in the manual?
Questions and answers