Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error in Building Menu in VFP Menu Editor
Message
 
 
To
19/04/2010 16:46:45
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01460987
Message ID:
01460990
Views:
81
This message has been marked as the solution to the initial question of the thread.
>I am getting an error "Too few arguments" when trying to build a menu from the standard VFP menu designer. The error is at the following code in the GenMenu.prg:
>
>
>FUNCTION buildenable
>PRIVATE m.stat, m.stat2
>
>m.stat = opendb(g_mnxfile[1]) AND openfile()                       && <<== ERROR OCCURRING HERE
>IF m.stat
>   SET TEXTMERGE ON
>ENDIF
>RETURN m.stat
>
>
>I have placed a SET STEP ON in the code and verified that the g_mnxfile[1] has the name of the menu file with the full path. I am at a loss of what is causing this error...

Is it possible that you have your own OpenDB or OpenFile functions? Just checking. Try to do CLEAR ALL before generating the menu.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform