CTRL+BREAK Does Not Abort Basic PDS's INKEY$ If No BC /D (72718)
The information in this article applies to:
- 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 Q72718 SUMMARY
If you compile without the BC /D (debug) option in Basic PDS versions
7.0 and 7.1, pressing CTRL+BREAK will cause the INKEY$ function to
return two null bytes and program execution will continue without
breaking. In contrast, when compiled with BC /D, or run in QBX.EXE, an
INKEY$ loop will not input CTRL+BREAK, and CTRL+BREAK will abort the
program (unless trapped with ON KEY GOSUB key-trapping statements).
This information applies to Microsoft Basic Professional Development
System (PDS) versions 7.0 and 7.1 for MS-DOS and MS OS/2.
In versions of Basic earlier than 7.0, the INKEY$ function never
returns bytes for CTRL+BREAK, and CTRL+BREAK always aborts the program
(unless trapped with ON KEY GOSUB key-trapping statements).
Modification Type: | Major | Last Reviewed: | 10/20/2003 |
---|
Keywords: | KB72718 |
---|
|