>>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)
>
>It is. 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.
>
>Glad you found a work around.
Actually that was the first thing I checked. When I did the compile I made sure the 'recompile all files' was checked - did the build, and then checked the .mpr file - and sure enough the lparameters statement was indeed there....yet running the .exe still generated this error.
ICQ 10556 (ya), 254117