Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning a value from a shortcut menu
Message
De
28/08/2001 13:53:04
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00549942
Message ID:
00549953
Vues:
14
Sure...I do it a lot. It may not be the "right" way, but I declare the variable prior to calling the shortcut menu, then, in the menu option procedures, I set the variable and return it...see below:

*- Code in procedure calling menu:
lcClickCode = " "

DO mnsFind.mpr

DO CASE
CASE UPPER(lcClickCode) = "F"
* Do Whatever
CASE UPPER(lcClickCode) = "Q"
* Do Whatever
ENDCASE


*- Code within each procedure of menu:
*** User selects first menu item:
lcClickCode = "1"

RETURN lcClickCode

*** User selects second menu item:
lcClickCode = "2"

RETURN lcClickCode

Good luck - Victor
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform