ERR (variable)
ERR Variable
This system variable returns the number of the error condition that last occurred during program processing.
Syntax
Section titled “Syntax”ERRRemarks
Section titled “Remarks”This system variable remains unchanged until a new error occurs or after the execution of a BEGIN, CLEAR, END, LOAD, RESET, RUN or STOP directive.
This system variable is numeric and may be used in numeric expressions.
Starting with release level 8.0, pressing the Escape key sets the ERR system variable to 127. This does not cause an error condition: it only sets the ERR system variable.
Examples
Section titled “Examples”LET E = ERRIf E=19, the last error to occur is ERR=19, which is related to program format or size.
See also
Section titled “See also”ERR function
ERC system variable, SET ERC, and CLEAR ERC directives
From the Thoroughbred Basic Language Reference, Volume I: A–E, version 8.9.1. Open this page in the PDF