FIX: Backslash Alone in Menu Causes "Illegal Operation" Error

ID: Q140576

3.00 WINDOWS kbother kbfixlist kbbuglist

The information in this article applies to:

  • Microsoft Visual FoxPro for Windows, version 3.0

SYMPTOMS

Using a backslash alone as a menu prompt will cause the following error when the menu is previewed or run.

   This program has performed and illegal operation and will be shut down.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Visual FoxPro version 3.0b for Windows.

MORE INFORMATION

If other characters are inserted before or after the backslash, no error occurs. If the backslash is the first character, the menu choice is disbled (grayed out). The error occurs only if the backslash is the only character.

Steps to Reproduce Problem

The following example duplicates the error. Please exercise caution if you decide to run this because it causes Visual FoxPro to halt. Before running this example, you should close any open files or tables within Visual FoxPro and close any other open applications. This code is provided as an illustration only.

1. Create a new menu named Pad1.

2. Create a menu options under Pad1 named Test and \.

3. Save the menu.

4. Preview the menu, and on the Pad1 menu, click Test. The error occurs.

5. Generate and run the menu. On the Pad1 menu, click Test again. The error

   occurs.

Additional reference words: 3.00 VFoxWin fixlist3.0b buglist3.00 KBCategory: kbother kbfixlist kbbuglist KBSubcategory: FxotherGeneral
Keywords          : FxotherGeneral kbbuglist kbfixlist
Version           : 3.00
Platform          : WINDOWS
Solution Type     : kbfix


Last Reviewed: October 31, 1997
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.