ProvideX V8.20 > Language Reference > 4. System Variables
558
ERR System Variable
    Last System-Detected Error Value
Numeric System Variable
Contents
Integer, last system-detected error code.
Description
The ERR variable contains a numeric value (integer) that indicates the last
system-detected error. It is reset by the BEGIN, CLEAR, END, RESET, STOP, and
START directives. See Error Codes and Messages, p.833, for a complete list of codes.
Examples
In the following example, the "TEST" file is already open:
0100 OPEN (5)"TEST"
Error #14: Invalid I/O request for file state
->?ERR
14
See Also
ERR( ) Function, p.425
DEF sysvar= Define System Variables, p.75
ERS System Variable
         Line Number of Last Error
Numeric System Variable
Contents
Integer, line number that generated last error.
Description
This ERS variable contains the line number that generated the last error detected in
the program.
Examples
0030?LET X$="" PRINT "Reset"
Error #20: Syntax error
1>RUN
0030?Let X$="" print "Rest"
Error #20: Syntax error
->?ERS
30
> EDIT 30