Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameter in menu???
Message
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00714073
Message ID:
00714077
Views:
23
>I created a menu using the infamous VFP menu designer (VFP7)...making sure to generate it when done. I then changed the mymenu.mpr program to something like this:
>
>LPARAMETERS oCallingObject
>DEFINE POPUP shortcut SHORTCUT RELATIVE FROM MROW(),MCOL()
>DEFINE BAR 1 OF shortcut PROMPT "Replicate..."
>ON SELECTION BAR 1 OF shortcut _screen.ActiveForm.preReplicate(oCallingObject)
>ACTIVATE POPUP shortcut
>
>....So here is my problem. This works fine if I'm in VFP, but if I run the .exe, I get an error saying there is no parameter statement. Anyway I fixed the problem by simply making the .mpr a .prg - but this makes me wonder if it's just not possible to pass parameters to menus??? (or in this case a shortcut menu)

What might have happened was the MPR got generated again when you built the EXE. Because the parameter was added after the fact, the rebuild deleted it. I'm not sure if you can add some stuff to the Setup/Cleanup procedures that would get you any better results.

Glad you found a work around.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform