>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.comNo trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.