Microsoft KB Archive/20514

= 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:


 * 1) Microsoft QuickBASIC Compiler version 1.00, 1.00a, 1.00b for the Apple Macintosh
 * 2) Microsoft BASIC Compiler version 1.00 for the Apple Macintosh
 * 3) 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

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.