APPENDIX A BASIC-SO ERROR CODES

Table

A-I.

BASIC-80

Error

Codes

Error
NEXT without
FOR
SYNTAX
ERROR
RETURN without
GOSUB_
Outof
DATA
Illegal function call
Overflow
Out
of
memory
Undefined line number
Subscript
out
of
range
Duplicate Definition
Division by zero
Illegal
direct
Type mismatch
Out
of
string space
String too long
String formula too complex
Can't continue
Undefined user function
No RESUME
RESUME without error
Unprintable error
Description
Program contains no corresponding
FOR
for
NEXT
Illegal usage
of
delimiters, characters, etc.
No GOSUB statement found to RETURN to.
All DATA statements
in
the program have been
read,
or
BASIC-80 tried to read too much,
or
too lit-
tle data was included in the program.
Parameter passed to a function was out
of
range.
Possible reasons:
1. A negative array subscript
2.
An
array
subscript>
32767
3.
LOG
with a zero
or
negative argument
4.
SQR
with a negative argument
5.
AtB with A negative and B not
an
integer
6.
A call to
USR
before a corresponding
DEFUSR
7.
Calls to MID$, LEFT$,
RIGHT$,
INP, OUT,
WAIT, PEEK,
POKE,
TAB,
SPC,
STRING$,
SPACES$, INSTR, or
ON
...
GOTO
with im-
proper arguments
Variable with magnitude greater than
3.4E38
(single-precision
floating-point)
or
1.7D308
(double-precision floating-point)
Program too large, contains too many loops,
subroutines, variables, or complicated expres-
sions.
A referenced line does not exist.
You referenced
an
array variable outside the
dimensions of the array, or referenced the wrong
number
of
dimensions.
You redimensioned
an
array previously
dimensioned.
A 'division by zero' operation was attempted.
An
instruction was used illegally in the Command
Mode.
A function which expects a string or variable was
given the wrong data type; any improper mix of
data types.
String variables are larger than the allocated
space. You can
increas~
space with CLEAR.
String exceeds
255
characters.
String was too long or complex; break into two.
An
attempt was made to continue a program
where an error occurred, or after modifications, or
with no program.
Reference to a non-defined
USR
function.
An error trapping routine has no RESUME.
RESUME
statement
without
error-trapping
routine.
No error message exists for the given error.
Check
ERROR
statements for undefined errors.
Number
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

A-I