SETESC lineref
SETESC 0
The SETESC verb sets the error handling routine location.
|
Parameter |
Description |
|
lineref |
Error handling routine location. |
See the Error Reporting & Handling and Escapes (!ERROR=127) sections in the User’s Reference Guide for additional information. If SETESC is active, program control goes to an interrupt handling routine when users request an interrupt. SETESC 0 disables the SETESC trap. Use SETESC as the first statement in a program to trap interrupts that may have occurred during a program load.
The verbs RESET, RUN, LOAD, BEGIN, CLEAR, END, and STOP set SETESC to 0. PRO/5 guarantees execution of at least one non-I/O verb following any of these verbs. This allows a new SETESC to be executed before PRO/5 acknowledges a potential interrupt.
Traditionally, Business BASIC used the escape character to interrupt the BASIC interpreter. However, in PRO/5, the escape/interrupt sequence varies with the operating environment. With the UNIX operating system, it is typically ^C or the DEL character. Use the stty command at the UNIX operating system shell prompt to determine the interrupt character. In MS-DOS, the interrupt signal is generated through the ^Break key sequence.
1000 SETESC 9400