> When I Generate the Menu, in the MPR Code I find setup code that I would expect: "LPARAMETER oObjName". So it seems to be in
> place, but when I run the form and call the menu, I get 1) the shortcut menu appears looking just fine; then 2) when I
> select the ToggleSize bar, I get error message "Object OOBJNAME is not found". Using MESSAGEBOX to trap the incoming parameter, I find it is not being passed (parameter is ".F.") I have tried placing the LPARAMETER statement in various
> places, all to no avail.
>
> Thanks again for any help.
>
> BillvV
Sorry Bill - I led you astray ! The parameter statement in the menu you shouldn't be an LPARAMETERS as this makes the parameter local to the procedure it is in (thus only the menu setup proc.) - it should be :
PARAMETERS oWhatever
This goes in the setup method of the menu in View/General Options. It is a bit confusing there ! To put the code in the right place you need to tick the setup checkbox, & Click the OK button and you should be in the setup code window.
You can look in the .mpr file once you have generated and confirm that the PARAMETERS statement is there.
Cheers,
Jamie
jamie.osborn@foxite.com