Commodore PET User Manual page 375

Table of Contents

Advertisement

BASIC Error Message
Error Message
BAD SUBSCRIPT
CAN'T CONTINUE
DIVISION BY ZERO
FORMULA TOO COMPLEX
362
Cause and Suggested Remedies
An attempt was made to reference an array
element that is outside the dimensions of the
array. This may happen by specifying the
wrong number of dimensions (different from
the DIM statement), using a subscript larger
than specified in the DIM statement or using a
subscript larger than 10 for a non-dimen-
sioned array.
Correct the array element number to remain
within the original dimensions, or change the
array size to allow more elements.
A CONT command was issued. but program
execution cannot be resumed because the
program has been altered. added to or cleared
in immediate mode. or execution was stopped
by an error. Program execution cannot be con-
tinued past an error message.
Correct the error. The most prudent course
is to type RUN and start over. However. vou
can attempt to reenter the program at the
point of interruption by a directed GOTO.
An attempt was made to perform a division
operation with a divisor of zero. Dividing by
zero is not allowed.
Check the values of variables (or constants!)
in the indicated line number. Change the pro-
gram so that the divisor can never be evalu-
ated to zero or add a check for zero before per-
forming the division.
This is not a program error but indicates
that a string expression in the program is too
intricate for PET BASIC to handle.
Break the indicated expression into two or
more parts and rerun the program (this will
also tend to improve program readability).

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cbm

Table of Contents