Knowledge Base

RETURN and ENTER Not Detected by INKEY$ If a BUTTON Is Present

Article ID: 20514

Article Last Modified on 8/16/2005


APPLIES TO


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