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



The information in this article applies to:

  • Microsoft BASIC Interpreter for Apple Macintosh 2.0
  • Microsoft BASIC Interpreter for Apple Macintosh 2.1
  • Microsoft BASIC Interpreter for Apple Macintosh 3.0
  • Microsoft BASIC Compiler

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.

Modification Type:MinorLast Reviewed:8/16/2005
Keywords:KB20514