OFFERROR

Disable runtime errors traps

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
OFFERROR

Discussion

The OFFERROR statement cancels any outstanding error traps established by a previous ONERROR statement. If you use OFFERROR, all runtime errors are subsequently considered fatal and cause immediate program termination until another ­ONERROR statement is executed. The exceptions are errors trapped by the I/O statement error lists and EOF labels.

See also

Record locking

Examples

onerror oops                    ;Enable "bad digit" trap
number = input
offerror                        ;Disable "bad digit" trap