How to Trap ESC Key in QuickBasic 4.5 and Basic PDS 7.0/7.1 (78563)
The information in this article applies to:
- Microsoft QuickBASIC 4.5
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.1
This article was previously published under Q78563 SUMMARY
This article describes how to trap the ESC key, allowing for different
states of NUM LOCK and CAPS LOCK during the program's execution.
The example below also illustrates how event handlers must be at the
module level, and how RETURN statements will resume execution at the
appropriate SUB (or FUNCTION). In a multi-module program, traps
activated in the main module are global to the program.
This information applies to Microsoft QuickBasic version 4.5 for
MS-DOS and to Microsoft Basic Professional Development System (PDS)
versions 7.0 and 7.1 for MS-DOS and MS OS/2.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | KB78563 |
---|
|