APPENDIX A
BASIC-SO ERROR CODES
Table A-I. BASIC-80 Error Codes
Error |
| Description | Number |
|
|
| |
NEXT without FOR | Program contains no corresponding FOR for |
| |
| NEXT |
| |
SYNTAX ERROR | Illegal usage of delimiters, characters, etc. | 2 | |
RETURN without GOSUB_ | No GOSUB statement found to RETURN to. | 3 | |
Outof DATA | All DATA statements in the program have been | 4 | |
| read, or |
| |
| tle data was included in the program. |
| |
Illegal function call | Parameter passed to a function was out of range. | 5 | |
| 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 |
|
Overflow | Variable with magnitude greater than 3.4E38 | 6 | |
|
| ||
|
| ||
Out of memory | Program too large, contains too many loops, | 7 | |
| subroutines, variables, or complicated expres- |
| |
| sions. |
| |
Undefined line number | A referenced line does not exist. | 8 | |
Subscript out of range | You referenced an array variable outside the | 9 | |
| dimensions of the array, or referenced the wrong |
| |
| number of dimensions. |
| |
Duplicate Definition | You redimensioned an array previously | 10 | |
| dimensioned. |
| |
Division by zero | A 'divisionby zero'operation was attempted. | 11 | |
Illegal direct | An instruction was used illegally in the Command | 12 | |
| Mode. |
| |
Type mismatch | A function which expects a string or variable was | 13 | |
| given the wrong data type; any improper mix of |
| |
| data types. |
| |
Out of string space | String variables are larger than the allocated | 14 | |
| space. You can increas~ space with CLEAR. |
| |
String too long | String exceeds 255 characters. | 15 | |
String formula too complex | String was too long or complex; break into two. | 16 | |
Can'tcontinue | An attempt was made to continue a program | 17 | |
| where an error occurred, or after modifications, or |
| |
| with no program. |
| |
Undefined user function | Reference to a | 18 | |
No RESUME | An error trapping routine has no RESUME. | 19 | |
RESUME without error | RESUME statement without | 20 | |
| routine. |
| |
Unprintable error | No error message exists for the given error. | 21 | |
| Check ERROR statements for undefined errors. |
|