![]() Error messages
( of Sharp's BASIC interpreter 1Z-013B
)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Error message format There are two formats of error messages: 1. <message> ERROR This type of error message will appear while the execution of an erroneous BASIC command directly typed in or if an error was detected during the execution of the edit mode. 2. <message> ERROR IN <line#> This type of error will appear if an error was detected while running a BASIC program. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ERN and ERL The error number is stored into the BASIC variable ERN by the BASIC interpreter. The BASIC line number in error is stored into the BASIC variable ERL by the BASIC interpreter. You can write your own error routines to prevent an abnormal end of your BASIC program by the BASIC command ON ERROR GOTO. Your own error routine should try to analyze the error and to restart the program correctly. Examlpes of possible commands for error handling: 200 ON ERROR GOTO 1000 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Error messages The following table contains all error messages and the associated error numbers.
|