Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Jamie Osborn
  Where is Jamie Osborn?
 Melbourne
 Australia
 Jamie Osborn
 To: Bill von Valtier
  
 Rochester
 
 Bill von Valtier
 Tags
Subject: RE: Shortcut menu problem
Thread ID: 22430 Message ID: 22540 # Views: 1 # Ratings: 0
Version: Visual FoxPro 6 Category: Forms
Date: Tuesday, April 22, 2003 1:21:07 AM         
   


> 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

COMPLETE THREAD

Shortcut menu problem Posted by Bill von Valtier @ 4/17/2003 5:51:47 PM
RE: Shortcut menu problem Posted by Jamie Osborn @ 4/18/2003 1:59:40 AM
RE: Shortcut menu problem Posted by Khalil Shaddad @ 4/18/2003 8:01:20 AM
Thanks, Khalil Posted by Bill von Valtier @ 4/18/2003 5:52:25 PM
RE: Shortcut menu problem Posted by Bill von Valtier @ 4/18/2003 5:43:51 PM
RE: Shortcut menu problem Posted by Jamie Osborn @ 4/22/2003 1:21:07 AM
RE: Shortcut menu problem Posted by Cosmin Popescu @ 4/21/2003 1:34:11 PM