Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can you pass a parameter to a shortcut procedure
Message
De
10/09/2008 12:32:02
 
 
À
10/09/2008 12:26:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01346381
Message ID:
01346382
Vues:
11
>The user right clicks a control which produces a shortcut menu. The choice then executes procedure code built into the shortcut. The procedure code needs to know a property value of the control that was right clicked. Is there a way to pass this value to the procedure code other than setting it as a public or private variable?
>
>Thanks

Yes, use a private variable prior to activating the shortcut
Private ControlUnderFocus
ControlUnderFocus = m.this
...

activate popup (theName)
or
Private ControlProperty
ControlProperty = m.this.PropertyName
...

activate popup (theName)
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform