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)
ICQ 10556 (ya), 254117