PRB: ENTER Is Disabled with SET COMPATIBLE ON

ID: Q114141

The information in this article applies to:

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

Last Reviewed: June 26, 1995