Microsoft KB Archive/111507

= PRB: Generate Command on Program Menu Is Disabled =

Article ID: 111507

Article Last Modified on 12/1/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft FoxPro 2.5b
 * Microsoft FoxPro 2.5a
 * Microsoft FoxPro 2.5b
 * Microsoft FoxPro 2.0
 * Microsoft FoxPro 2.5b for MS-DOS
 * Microsoft FoxPro 2.5a
 * Microsoft FoxPro 2.5b for MS-DOS
 * Microsoft FoxPro 2.5b for Macintosh

-



This article was previously published under Q111507



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.

(c) Microsoft Corporation 2000, All Rights Reserved. Contributions by Kevin Zollman, Microsoft Corporation.

Additional query words: MBuilder FoxMac FoxDos FoxWin vFoxWin grayed greyed dimmed unavailable akz

Keywords: KB111507

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.