Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a menu by RightClick
Message
From
18/11/1998 14:29:10
 
 
To
18/11/1998 14:11:59
Noman Aftab
Embry-Riddle Aeronautical University
Daytona Beach, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00158932
Message ID:
00158942
Views:
16
>I am trying to pass variables to be used by the shortcut menu to Add, delete and display description but I am not sure how to pass it in. I have properties which I need to pass in, how can I address these properties within the menu procedure?????

Hi Noman,

The first thing I need to know is the source of the variables you are "passing" to the shortcut menu. Is it a form, procedure code, what?

If it is a form, you may address any form and any control on the form using _Screen.activeform.activecontrol.. So if your menu needs to know the state of the enabled property of myControl on the active form, the address is _screen.activeform.myControl.enabled.

With procedure code, one way of putting a variable where the menu can find it is just to define a public variable and assign it a value. Have the menu read the value the release the public variable.

I presume you are making all of these changes in your cleanup code, so do not forget to put the #perpop directive in your setup code so the cleanup code will be read before the menu is popped.

regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Previous
Reply
Map
View

Click here to load this message in the networking platform