Appendix
F:
Error
Messages 337
FILE OPEN
An attempt was made to open a file that has already been opened via a
previous OPEN statement.
Check the logical file number (first parameter in the OPEN state-
ment) to be sure that a different number
is
used for each file. Insert a
CLOSE statement if you want to reopen the same file for a different
1/0
operation.
FORMULA TOO COMPLEX
This
is
not a program error but indicates that a string expression in the
program
is
too intricate for VIC BASIC to handle.
Break the indicated expression into two or more parts and rerun the
program. (This will also tend to improve program readability.)
ILLEGAL
DIRECT
A command was given in immediate mode that
is
valid only in program
mode. The following are invalid in immediate mode: DATA,
DEF
FN,
GET, GET#, INPUT, and INPUT#.
Enter the desired operation as a (short) program and run it.
ILLEGAL QUANTITY
A function has passed one
or
more parameters
that
are out
of
range.
This often occurs in
POKE
statements that use input variables greater
than
255
or
less
than
O.
This message also occurs if the
USR
function
is
referenced before
storing the subroutine address at memory locations 1 and
2.
LOAD
An unacceptable number
of
tape errors (more than
31)
were accumulated
on a tape load. They were not cleared on reading the redundant block.
This message
is
issued in connection with the LOAD command.
NEXT WITHOUT
FOR
A NEXT statement
is
encountered that
is
not tied to a preceding
FOR
statement. Either there
is
no
FOR
statement
or
the variable in the
NEXT statement
is
not in a corresponding
FOR
statement.
The
FOR
part of a FOR-NEXT loop must be inserted
or
the
offending NEXT statement deleted.
Be
sure that the index variables are
the same
at
both ends of the loop.