
GW-BASIC allocates string space dynamically until it runs out of memory.Īn attempt is made to create a string more than 255 characters long.Ī string expression is too long or too complex.
Gw basic nested loop programs free#
String variables have caused GW-BASIC to exceed the amount of free memory remaining. Machine infinity with the sign of the numerator is supplied as the result of the division, or positive machine infinity is supplied as the result of the involution, and execution continues.Ī statement that is illegal in direct mode is entered as a direct mode command.Ī string variable name is assigned a numeric value or vice versa a function that expects a numeric argument is given a string argument or vice versa. Two DIM statements are given for the same array, or a DIM statement is given for an array after the default dimension of 10 has been established for that array.Ī division by zero is encountered in an expression, or the operation of involution results in zero being raised to a negative power. Use the CLEAR statement to set aside more stack space or memory area.Ī line reference in a GOTO, GOSUB, IF-THEN.ELSE, or DELETE is a nonexistent line.Īn array element is referenced either with a subscript that is outside the dimensions of the array, or with the wrong number of subscripts. If underflow occurs, the result is zero, and execution continues without an error.Ī program is too large, has too many FOR loops, GOSUBs, variables, or expressions that are too complicated. The result of a calculation is too large to be represented in GW-BASIC's number format. an improper argument to MID$, LEFT$, RIGHT$, INP, OUT, WAIT, PEEK, POKE, TAB, SPC, STRING$, SPACE$, INSTR, or ON.GOTO.a call to a USR function for which the starting address has not yet been given.a negative mantissa with a noninteger power.a negative or unreasonably large subscript.An illegal function call error may also occur as the result of: This error causes GW-BASIC to display the incorrect line in edit mode.Ī RETURN statement is encountered for which there is no previous GOSUB statement.Ī READ statement is executed when there are no DATA statements with unread data remaining in the program.Īn out-of-range parameter is passed to a math or string function. Check variable at FOR statement for a match with the NEXT statement variable.Ī line is encountered that contains an incorrect sequence of characters (such as unmatched parentheses, a misspelled command or statement, incorrect punctuation). NEXT without FOR NEXT statement does not have a corresponding FOR statement.
