PRB: Generate Command on Program Menu Is Disabled

Last reviewed: April 30, 1996
Article ID: Q111507
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 3.0
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, and 2.5b
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, 2.5a, and 2.5b
  • Microsoft FoxPro for Macintosh, version 2.5b

SYMPTOMS

The Generate command on the Program menu, which is used to generate program code for the Screen Builder and Menu Builder, is disabled. In Visual FoxPro, the Generate option under the Menu pad is disabled.

CAUSE

  • A program is currently running.

    -or-

  • The Screen Builder or Menu Builder window is not the active window.

    -or-

  • The _GENMENU or _GENSCRN system memory variable has been set to null.

RESOLUTION

To resolve this problem, do one of the following:

  • Cancel execution of the program that is currently running. Open the Program menu. If the Cancel command is available (not disabled), then a program is currently running. Choose Cancel to stop execution of the program.

    -or-

  • Click the Screen Builder or Menu Builder window (or icon if the window has been minimized) to make it the active window (or icon). Look for the window or icon with either the .SCX (screen) or .MNX (menu) extension.

    -or-

  • Set the _GENMENU or _GENSCRN system memory variable to the appropriate path and file. For example, assuming FoxPro is installed in the FOXPROW directory on drive C, type one of the following commands in the Command window to restore the appropriate system memory variable:

          _GENSCRN = "C:\FOXPROW\GENSCRN.PRG"
    

          _GENMENU = "C:\FOXPROW\GENMENU.PRG"
    

NOTE: The memory variables _GenMenu and _GenScrn may be reset by FoxPro after generating a screen or menu to the compiled version of GENSCRN.PRG and GENMENU.PRG (GENSCRN.FXP and GENMENU.FXP). Either memory variable (.PRG or .FXP) is acceptable and you should not be concerned when the file changes to .FXP format. This is normal functionality.

STATUS

This behavior is by design.


Additional reference words: MBuilder FoxMac FoxDos FoxWin 2.00 2.50 2.50a
2.50b vFoxWin 3.00
grayed
greyed
dimmed
unavailable
KBCategory: kbprg kbprb
KBSubcategory: FxtoolMBuilder


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: April 30, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.