Error Messages
CODE Meaning Situation  
0 OK Successful completion, or jump toa line number bigger than existing. This report does not change the line and statement jumped to by continue Any
1 Next Without For This control variable does not exist (it has not been set up by a FOR statement), but there is an ordinary variable witht the same name. NEXT
Jumping into a loop is a common cause
2 Variable Not Found For a simple variable this will happen if the variableis used before it has been assigned to in a LET, READ or INPUT statement, loaded from tape or set up in a FOR statement. For a subscripted variable it will happen if the variable is used before it has been dimensioned in a DIM statement or loaded from tape. Any
3 Subscript Wrong A subscript is beyond the dimension of the array, or there are the wrong numbers of subscripts. If the subscript is negative or bigger than 65535, then error B will result . Subscripted variables (Arrays), Substrings
4 Out Of Memory There is not enough room in the computer for what you are trying to do. If the computer really seems to be stuck in this state, you may have to clear out the command line using DELETE and then delete a program line or two ( with the intention of putting them back afterwards ) to give yourself room to manoeuvre with CLEAR. LET, INPUT, FOR, DIM, GO SUB, LOAD, MERGE. Sometimes during expression evaluation.
5 Out Of Screen An INPUT statement has tried to generate more than 23 lines in the lower half of the screen. Also occurs with PRINT AT 22..... INPUT, PRINT AT
6 Number Too Big Calculations have led to a number greater than about 10(38). Any arithmetic. Division by zero is a common cause
7 RETURN without GO SUB There has been one more RETURN than there were GO SUBs. RETURN. No STOP statement before a subroutine is common.
8 End Of File   Microdrive etc. operations only
9 STOP Statement After this, continue will not repeat the STOP, but carries on with the statement after, or next line after, STOP STOP
A Invalid Argument The argument for a function is no good for some reason. SQR, LN, ASN, ACS, USR (with string argument)
B Integer Out Of Range When an integer is required, the floating point argument is rounded to the nearest integer. If this is outside a suitable range then error B results. RUN, RANDOMIZE, POKE, DIM, GOTO, GO SUB, LIST, LLIST, PAUSE, PLOT, CHR$, PEEK, USR (with numeric argument)
C Nonsense in BASIC The text of the (string) argument does not form a valid expression. VAL, VAL$
D BREAK- CONT repeats BREAK was pressed during some peripheral operation. The behaviour of CONTINUE after this report is normal in that it repeats the statement, Compare with report L. LOAD, SAVE, VERIFY, MERGE, LPRINT, LLIST, COPY. Also when the computer asks you to scroll? and you type N, SPACE or STOP.
E Out Of Data You have tried to READ past the end of the DATA list. READ
F Invalid File Name SAVE with the name empty or longer than 10 characters. SAVE
G No Room For Line There is not enough room left in the memory to accomodate the new program line. Entering a line into a program
H STOP in INPUT Some INPUT data started witha STOP, or - for INPUT LINE - BREAK was pressed. Unlike the case with report 9 after report H CONTINUE will behave normally, by repeating the INPUT statement.  
I FOR without NEXT There was a FOR loop to be executed no times (e.g. FOR n=1 to 0) and the corresponding NEXT statement could not be found. FOR
J Invalid I/O Device   Microdrive etc. operations only
K Invalid Colour The number specified is not an appropiate value. INK, PAPER, BORDER, FLASH, BRIGHT, INVERSE, OVER; also after one of the corresponding control characters
L BREAK Into Program BREAK pressed, this is detected between two statements. The line and statement number in the report refer to the statement before BREAK was pressed, but CONTINUE goes to the statement after (allowing for any jumps to be done), so it does not repeat any statements. Any
M Ramtop No Good The number specified for RAMTOP is either too big or too small. CLEAR; possibly in RUN
N Statement Lost Jump to a statement that no longer exists. RETURN, NEXT, CONTINUE
O Invalid Stream   Microdrive etc. operations only
P FN without DEF User-defined function. FN
Q Parameter Error Wrong number of arguments, or one of them is in the wrong type (string instead of number or vice versa). FN
R Tape Loading Error A file on a tape was found but for some reason could not be read in, or would not verify. VERIFY, LOAD or LOAD
 
 
 
 
©2002 ZeDeX82