PRB: ENTER Is Disabled with SET COMPATIBLE ON

Last reviewed: June 26, 1995
Article ID: Q114141
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, 2.6
  • Microsoft FoxPro for MS-DOS, versions 2.5, 2.5a, 2.5b, 2.6

SYMPTOMS

If you run a quick menu that uses CTRL+M as a shortcut key for any menu option, the ENTER key will be disabled or exhibit unexpected behavior as long as SET COMPATIBLE is ON.

CAUSE

For dBASE compatibility, ENTER has been remapped to CTRL+M. Therefore, if you are using CTRL+M as a shortcut key for a menu option, pressing ENTER will run the menu command instead.

RESOLUTION

To restore normal ENTER key functionality, you must quit and restart FoxPro. To quit FoxPro, press ALT+F4 in FoxPro for Windows, or press ALT+F to open the File menu and then press Q to choose Quit in FoxPro for MS-DOS.

NOTE: This is expected dBASE behavior.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Problem

  1. In the Command window, type the following command:

          SET COMPATIBLE ON
    

  2. Create a quick menu that contains only the Program and File menu pads. Save and generate the menu.

  3. In the Command window, type the following command:

          DO <menu>.MPR
    

  4. Return to the Command window and type the following command:

          Wait window "this is a test"
    

  5. Press ENTER. The wait window will not appear, and nothing will happen.

The shortcut key for the Resume option is CTRL+M. Since the Resume option is normally unavailable (dimmed), the ENTER key will be disabled.


Additional reference words: FoxDos FoxWin 2.50 2.50a 2.50b 2.60
KBCategory: kbprg kb3rdparty kbprb
KBSubcategory: FxinteropGeneral


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 26, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.