SETESC Verb - Set Interrupt Handling Routine

Syntax

SETESC lineref
SETESC 0

Description

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.

Examples

1000 SETESC 9400

See Also

Verbs - Alphabetical Listing



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.