Microsoft KB Archive/138375

= PRB: Errors Caused by Setting _GENMENU to an Invalid Value =

Article ID: 138375

Article Last Modified on 2/11/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition

-



This article was previously published under Q138375



SYMPTOMS
When you attempt to generate a menu, under certain circumstances, the Generate option of the Menu menu is disabled, or one of the following errors may occur:

Function argument value, type, or count is invalid.

-or-

Function argument value, type, or count is invalid. Line Number: 2202



CAUSE
One of these problems will occur if the system memory variable _GENMENU is initialized to an invalid value or the Genmenu.prg file is corrupt.



RESOLUTION
You may be able to fix this problem by setting _GENMENU to a valid value using the following syntax in the Command window:

_GENMENU = SYS(2004) + "GENMENU.PRG"

Or you may be able to fix it by adding this line of code as the first line of Vfpstart.prg, which is located in the main Visual FoxPro directory and is the program that starts by default when you launch Visual FoxPro.

If the Genmenu.prg file is corrupt, you may need to replace it by reinstalling Visual FoxPro or by expanding it from the installation media.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
Ths following steps cause the Generate option to be disabled.   In the Command window, enter the following line of code: _GENMENU = ""  Modify a menu. Click the Menu menu. Note that the Generate option is disabled.

Additional query words: VFoxWin

Keywords: KB138375

-

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

© Microsoft Corporation. All rights reserved.