Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a menu by RightClick
Message
De
18/11/1998 14:29:10
 
 
À
18/11/1998 14:11:59
Noman Aftab
Embry-Riddle Aeronautical University
Daytona Beach, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00158932
Message ID:
00158942
Vues:
17
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform