Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning a value from a shortcut menu
Message
From
28/08/2001 13:53:04
 
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00549942
Message ID:
00549953
Views:
19
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
Previous
Reply
Map
View

Click here to load this message in the networking platform