You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PauloAstro edited this page Sep 4, 2022
·
9 revisions
The _ERRORMESSAGE$ function returns a human-readable description of the most recent runtime error, or the description of an arbitrary error code passed to it.
The message returned is identical to the message shown in the dialog box that appears if your program has no error handler. See ERROR Codes for the full list of error codes and their messages.
Example(s)
Using an error handler that ignores any error.
ONERRORGOTOErrhandler' Main module program error simulation codeERROR7' simulate an Out of Memory ErrorPRINT"Error handled...ending program"SLEEP4SYSTEM' end of program codeErrhandler:'error handler sub program line labelPRINT"Error"; ERR; "on program file line"; _ERRORLINEPRINT"Description: "; _ERRORMESSAGE$; "."BEEP' warning beepRESUMENEXT' moves program to code following the error.