FIX: SET SYSMENU TO DEFAULT Command in Program Clears Menu

Last reviewed: September 22, 1997
Article ID: Q124362
2.60    | 2.50b 2.50c
WINDOWS | MACINTOSH kbprg kbbuglist kbfixlist

The information in this article applies to:

  • Microsoft FoxPro for Windows, version 2.6
  • Microsoft FoxPro for Macintosh, versions 2.5b and 2.5c

SYMPTOMS

When the SET SYSMENU TO DEFAULT command is executed from a program, it clears any menu previously saved with PUSH MENU. However, if the command is issued from the Command window, the menu is not cleared.

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 FoxPro version 2.6a for Windows and Microsoft FoxPro version 2.6a for Macintosh.

MORE INFORMATION

Steps to Reproduce Problem

  1. Create a program that contains the following lines:

    SET SYSMENU TO SET SYSMENU AUTOMATIC DEFINE PAD quiter OF _msysmenu PROMPT "Quit" ON SELECTION PAD quiter OF _msysmenu SET SYSMENU TO DEFAULT PUSH MENU _msysmenu SET STEP ON SET SYSMENU TO DEFAULT && Comment this out and do at Command window POP MENU _msysmenu WAIT WINDOW "Did it restore *Quit* menu?"

  2. Run the program. The Trace window comes up and if you step through each line, the menu is not restored.

  3. Run the program again. This time instead of stepping through the program execute each line from the Command window. The saved menu is restored.


Additional reference words: FoxWin FoxMac2.60 buglist2.60 fixlist2.60a
KBCategory: kbprg kbfixlist kbbuglist
KBSubcategory: FxprgSet
Solution Type : kbfix


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: September 22, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.