RETURN and ENTER Not Detected by INKEY$ If a BUTTON Is Present
Article ID: 20514
Article Last Modified on 8/16/2005
APPLIES TO
- Microsoft BASIC Interpreter 2.0
- Microsoft BASIC Interpreter 2.1 for Macintosh
- Microsoft BASIC Interpreter 3.0 for Macintosh
- Microsoft BASIC Compiler 6.0b
This article was previously published under Q20514
SUMMARY
The information below applies to the following products:
- Microsoft QuickBASIC Compiler version 1.00, 1.00a, 1.00b for the
Apple Macintosh
- Microsoft BASIC Compiler version 1.00 for the Apple Macintosh
- Microsoft BASIC Interpreter versions 2.00, 2.10, and 3.00 for the
Apple Macintosh
The INKEY$ function cannot detect the RETURN key (the ENTER key on the
main keyboard) or the ENTER key (the ENTER key on the numeric keypad)
if there is also a BUTTON on the same window, because BUTTON traps the
RETURN and ENTER keys first. This priority of BUTTONs over the INKEY$
function is by design.
Additional query words: BasicCom MQuickB
Keywords: KB20514