TI BASIC ERRORS


The following lists all the error messages that TI Extended BASIC gives. The first list is alphabetical by the message that is given, and the second list is numeric by the number of the error that is returned by CALL ERR. If the error occurs in the execution of a program, the error message is often followed by IN line-number.

Sorted by message

74

BAD ARGUMENT

·          Bad value given in ASC, ATN, COS, EXP, INT, LOG, SIN, SOUND,  SQR, TAN or VAL

·          An array element specified in a SUB statement

·          Bad first parameter or too many parameters in LINK.

61

BAD LINE NUMBER

·          Line Number less than 1 or greater than 32767.

·          Omitted line number

·          Line Number outside the range 1 to 32767 produced by RES

57

BAD SUBSCRIPT

·          Use of too large or small subscript in an array

·          Incorrect subscript in DIM

79

BAD VALUE

·          Incorrect value given in AND, CHAR, CHR$, CLOSE, EOF, FOR, GOSUB, GOTO, HCHAR, INPUT, MOTION, NOT, OR, POS, PRINT, PRINT USING, REC, RESTORE, RPT$, SEG$, SIZE, VCHAR, or XOR.

·          Array subscript value greater than 32767

·          File number greater than 255 or less than zero

·          More than three tones and one noise generator specified in SOUND.

·          A value passed to a subprogram is not acceptable in the subprogram. For example a sprite velocity value less than -128 or a character value greater than 143.

·          Value in ON...GOTO or ON...GOSUB greater than the number of lines given.

·          Incorrect position given after the AT clause in ACCEPT or DISPLAY.

67

CAN’T CONTINUE

·          Program has been edited after being stopped by a breakpoint.

·          Program was not stopped by a breakpoint.

69

COMMAND ILLEGAL IN PROGRAM

·          BYE, CON, LIST, MERGE, NEW, NUM, OLD, RES, or SAVE used in a program.

84

DATA ERROR

·          READ or RESTORE with data not present or with a string where a numeric value is expected.

·          Line number after RESTORE is higher than the highest line number in the program.

·          Error in object file in LOAD.

109

FILE ERROR

·          Wrong type of data read with a READ statement.

·          Attempt to use CLOSE, EOF, INPUT, OPEN, PRINT, PRINT USING, REC, or RESTORE with a file that does not exist or does not have the proper attributes.

·          Not enough memory to use a file.

44

FOR-NEXT NESTING

·          The FOR and NEXT statement of LOOPS do not align properly

·          Missing NEXT statement.

130

I/O ERROR

·          An error was detected in trying to execute CLOSE, DELETE, LOAD, MERGE, OLD, OPEN, RUN, or SAVE.

·          Not enough memory to list a program

16

ILLEGAL AFTER SUBPROGRAM

·          Anything but END, REM, or SUB after a SUBEND.

36

IMAGE ERROR

·          An error was detected in the use of DISPLAY USING, IMAGE or PRINT USING.

·          More than 10(E-Format) or 14 (numeric format) significant digits in the format string.

·          IMAGE string is longer than 254 characters.

·           

28

IMPROPERLY USED NAME

·          An illegal variable name was used in CALL, DEF, or DIM

·          Using a TI Extended BASIC keyword in LET.

·          Using a subscripted variable or a string variable in a FOR.

·          Using an array with the wrong number of dimensions.

·          Using a variable name differently than originally assigned. A variable can be only an array, a numeric or string variable, or a user defined function name.

·          Dimensioning an array twice

·          Putting a user defined function name on the left of the equals sign in an assignment function.

·          Using the same variable twice in the parameter list of a SUB statement.

81

INCORRECT ARGUMENT LIST

·          CALL and SUB mismatch of arguments

83

INPUT ERROR

·          An error was detected in an INPUT

60

LINE NOT FOUND

·          Incorrect line number found in BREAK, GOSUB, GOTO, ON ERROR, RUN or UNBREAK, or after THEN or ELSE.

·          Line to be edited not found.

62

LINE TOO LONG

·          Line too long to be entered into a program

39

MEMORY FULL

·          Program too large to execute one of the following: DEF, DELETE, DIM, GOSUB, LET, LOAD, ON...GOSUB, OPEN or SUB.

·          Program too large to add a new line, insert a line, replace a line, or evaluate an expression.

49

MISSING SUBEND

·          SUBEND missing in a subprogram

47

MUST BE IN SUBPROGRAM

·          SUBEND or SUBEXIT not in a subprogram

19

NAME TOO LONG

·          More than 15 characters in variable or subprogram name.

43

NEXT WITHOUT FOR

·          FOR statement missing, NEXT before FOR, incorrect FOR – NEXT nesting, or branching into a FOR-NEXT loop.

78

NO PROGRAM PRESENT

·          No program present when issuing a LIST, RESEQUENCE, RESTORE, RUN, or SAVE command.

10

NUMERIC OVERFLOW

·          A number too large or too small resulting from a *, +, - , / operation or in ACCEPT, ATN, COS, EXP, INPUT, INT, LOG, SIN, SQR, TAN or VAL.

·          A number outside the range -32768 to 32767 in PEEK or LOAD.

70

ONLY LEGAL IN A PROGRAM

·          One of the following statements was used as a command: DEF, GOSUB, GOTO, IF, IMAGE, INPUT, ON BREAK, ON ERROR, ON...GOSUB, ON...GOTO, ON WARNING, OPTION BASE, RETURN, SUB, SUBEND, or SUBEXIT.

25

OPTION BASE ERROR

·          OPTION BASE executed more than once, or with a value other than 1 or zero.

97

PROTECTION VIOLATION

·          Attempt to save, list or edit a protected program.

48

RECURSIVE SUBPROGRAM CALL

·          Subprogram calls itself, directly or indirectly.

51

RETURN WITHOUT GOSUB

·          RETURN without a GOSUB or an error handled by the previous execution of an ON ERROR statement.

56

SPEECH STRING TOO LONG

·          Speech string returned by SPGET is longer than 255 characters.

40

STACK OVERFLOW

·          Too many sets of parentheses

·          Not enough memory to evaluate an expression or assign a value.

54

STRING TRUNCATED

·          A string created by RPT$, concatenation ("&" operator) or a user defined function is longer than 255 characters.

·          The length of a string expression in the VALIDATE clause is greater than 254 characters.

24

STRING-NUMBER MISMATCH

·          A string was given where a number was expected or vice versa in a TI Extended BASIC supplied function or subprogram.

·          Assigning a string value to a numeric value or vice versa.

·          Attempting to concatenate ("&" operator) a number.

·          Using a string as subscript.

135

SUBPROGRAM NOT FOUND

·          A subprogram called does not exist or an assembly language subprogram named in LINK has not been loaded.

14

SYNTAX ERROR

·          An error such as a missing or extra comma or parenthesis, parameters in the wrong order, missing parameters, missing keyword, misspelled keyword, keyword in the wrong order, or the like was detected in a TI Extended BASIC command, statement, function or subprogram.

·          DATA or IMAGE not first and only statement on a line.

·          Items after final ")"

·          Missing "#" in SPRITE

·          Missing ENTER, tail comment symbol (!), or statement separator symbol (::).

·          Missing THEN after IF.

·          Missing TO after FOR.

·          Nothing after CALL, SUB, FOR, THEN or ELSE.

·          Two E’s in a numeric constant.

·          Wrong parameter list in a TI Extended BASIC supplied subprogram.

·          Going into or out of a subprogram with GOTO, GOSUB, ON ERROR, etc.

·          Calling INIT without the Memory Expansion Peripheral attached.

·          Calling LINK or LOAD without first calling INIT.

·          Using a constant where a variable is required.

·          More than seven dimensions in an array.

17

UNMATCHED QUOTES

·          Odd number of quotes in an input line.

20

UNRECOGNIZED CHARACTER

·          An unrecognized character such as ? or % is not in a quoted string.

·          A bad field in an object file accessed by load.

 


Sorted by Number

 

10

NUMERIC OVERFLOW

14

SYNTAX ERROR

16

ILLEGAL AFTER SUBPROGRAM

17

UNMATCHED QUOTES

19

NAME TOO LONG

20

UNRECOGNIZED CHARACTER

24

STRING-NUMBER MISMATCH

25

OPTION BASE ERROR

28

IMPROPERLY USED NAME

36

IMAGE ERROR

39

MEMORY FULL

40

STACK OVERFLOW

43

NEXT WITHOUT FOR

44

FOR-NEXT NESTING

47

MUST BE IN SUBPROGRAM

48

RECURSIVE SUBPROGRAM CALL

49

MISSING SUBEND

51

RETURN WITHOUT GOSUB

54

STRING TRUNCATED

56

SPEECH STRING TOO LONG

57

BAD SUBSCRIPT

60

LINE NOT FOUND

61

BAD LINE NUMBER

62

LINE TOO LONG

67

CAN’T CONTINUE

69

COMMAND ILLEGAL IN PROGRAM

70

ONLY LEGAL IN A PROGRAM

74

BAD ARGUMENT

78

NO PROGRAM PRESENT

79

BAD VALUE

81

INCORRECT ARGUMENT LIST

83

INPUT ERROR

84

DATA ERROR

97

PROTECTION VIOLATION

109

FILE ERROR

130

I/O ERROR

135

SUBPROGRAM NOT FOUND