Chapter
12
BASIC
ERROR CODES AND MESSAGES
Number
Message
1
NEXT without
FOR
BASIC executed
a
NEXT statement without previ-
ously executing
a
FOR statement,
or
a variable in a
NEXT statement does not correspond to a previ-
ously executed FOR statement.
2
Syntax error
BASIC
encountered a line that contains an incor-
rect sequence
of
characters (such
as
unmatched pa-
rentheses, misspelled statement, incorrect
punctuation, etc.). BASIC automatically enters the
edit mode at the line that caused the error.
3
RETURN without GOSUB
BASIC executed
a
RETURN statement without pre-
viously executing a
GOSUB
statement.
4
Out
of
DATA
When executing a READ statement, BASIC could
not find any DATA statements or unread data
items.
5
Illegal function call
A
parameter that is out
of
range was passed
to
a
math
or
string function. This error may also occur
as the result
of:
negative array subscript or an unreasonably
large array subscript.
negative
or
zero argument with
LOG.
0
negative argument to
SQR.
0
negative mantissa with a noninteger exponent.
0
invalid exponential number
365