Sharp OZ-707 Operation Manual - Page 119

Appendix A, Error Messages

Page 119 highlights

APPENDIX A ERROR MESSAGES When an error occurs, one of the error messages listed below will be displayed. For errors which occur during program execution, the error message is followed by the line number in which the error occurred. The error number and the line number are stored into the variables ERN and ERL, respectively. Errors which occur during direct input operation do not change the values of the variables ERN and ERL. Error message Syntax error Direct command error Mode error Can't continue Program not exist Overflow Division by Zero Illegal function call Duplicate Definition Array specified without DIM Subscript out of range Error No. 10 11 12 13 14 20 21 22 30 31 32 Meaning Invalid expressions or statements have been used. An attempt was made to execute a command which is illegal in direct input operation. An attempt was made to execute a command which is illegal in program execution. The mode for PRO or RUN was selected incorrectly. The mode selection in the OPEN statement was incorrect. The CONT statement was executed illegally. An attempt was made to designate a password to a program which does not exist. The calculated result exceeds the calculation range. An attempt was made to divide by zero. An illegal operation was attempted. An attempt was made to declare an array variable name which is already declared. The array variable name was specified without the DIM statement. Array was addressed illegally (array subscript exceeds the size of the array specified in the DIM statement) 226 Error message Data out of range Undefined line Illegal line number Bad line number GOSUB or FOR nesting exceeded RETURN without GOSUB NEXT without FOR Out of data Buffer space exceeded String too long Line buffer overflow RESUME without error Out of memory Can't print in specified format USING format error va error Too many files open Error No. 33 40 41 44 50 51 52 53 54 55 56 57 60 70 71 72 73 Meaning The specified value exceeds the allowable range. The specified line number or label does not exist. The line number was specified illegally. The ending line number was specified with a number less than the starting line number in a statement such as LLIST or DELETE. The levels of nesting in the GOSUB or FOR statement exceeds the allowable range. An attempt was made to execute the RETURN statement without calling the subroutine. The FOR statement is missing for the NEXT statement. The OATA statement is missing for the READ statement. The size of the BASIC interpreter exceeds the available work area. The length of the entered string exceeds 254 bytes. The line exceeds 254 bytes. An attempt was made to execute the RESUME statement during non-error processing. The size of program or variable exceeds the memory capacity. Characters cannot be printed nor displayed in the format specified in the USING statement. The format specified in the USING statement is illegal. I/O device error. The number of files to be opened exceeds the limit. 227

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128

APPENDIX A
ERROR MESSAGES
When
an
error
occurs,
one
of
the
error
messages
listed
below
will
be
displayed.
For
errors which
occur
during
program
execution,
the
error
message
is
followed
by
the
line
number
in
which
the
error
occurred.
The
error
number
and
the
line
number
are
stored
into
the
variables
ERN
and
ERL,
respectively.
Errors
which
occur
during
direct
input
operation
do
not
change
the
values
of
the
variables
ERN
and
ERL.
Error message
Error
Meaning
No.
Syntax error
10
Invalid expressions or statements have
been used.
Direct command error
11
An
attempt was made to execute a
command which is illegal
in
direct input
operation.
An
attempt was made
to
execute a command which
is
illegal
in
program execution.
Mode error
12
The mode for PRO or
RUN
was selected
incorrectly. The mode selection
in
the
OPEN statement was incorrect.
Can
't continue
13
The
CO
NT
statement was executed
illegally.
Program not exist
14
An
attempt was made to designate a
password
to
a program which does not
exist.
Overflow
20
The calculated result exceeds the
calculation range.
Division by Zero
21
An
attempt was made to divide
by
zero.
Illegal function call
22
An
illegal operation was attempted.
Duplicate Definition
30
An
attempt was made
to
declare
an
array variable name which
is
already
declared.
Array specified without
31
The array variable name was specified
DIM
without the
DIM
statement.
Subscript out of range
32
Array was addressed illegally (array
subscript exceeds the size of the array
specified
in
the DIM statement)
226
Error message
Error
Meaning
No.
Data out
of
range
33
The specified value exceeds the
allowable range.
Undefined line
40
The specified line number or label does
not exist.
Illegal line number
41
The line number was specified illegally.
Bad line number
44
The ending line number was specified
with a number less than the starting line
number
in
a statement such as LLIST or
DELETE.
GOSUB or FOR
50
The levels of nesting in the GOSUB or
nesting exceeded
FOR statement exceeds the allowable
range.
RETURN without
51
An
attempt
was
made to execute the
GOSUB
RETURN statement without calling the
subroutine.
NEXT without FOR
52
The FOR statement is missing for the
NEXT statement.
Out of data
53
The OATA statement is missing for the
READ statement.
Buffer space exceeded
54
The size
of
the BASIC interpreter
exceeds the available work area.
String too long
55
The length of the entered string exceeds
254 bytes.
Line buffer overflow
56
The line exceeds 254 bytes.
RESUME without error
57
An
attempt
was
made to execute the
RESUME statement during non-error
processing.
Out of memory
60
The size of program or variable exceeds
the memory capacity.
Can't print
in
specified
70
Characters cannot be printed nor
format
displayed
in
the format specified
in
the
USING statement.
USING format error
71
The format specified in the USING
statement is illegal.
va
error
72
I/O device error.
Too many files open
73
The number of files to
be
opened
exceeds the limit.
227