Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menu Prompts
Message
From
07/03/2005 10:43:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
07/03/2005 10:39:09
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Title:
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00993270
Message ID:
00993286
Views:
12
>On Bar 1 of Menu1 reads: ON BAR 1 of Menu1 ACTIVATE POPUP Menu2
>On Bar 1 of Menu2 reads: ON BAR 1 of Menu2 ACTIVATE POPUP Menu3
>On Bar 1 of Menu3 reads: ON BAR 1 of Menu3 ACTIVATE POPUP Menu4
>
>ON SELECTION POPUP Menu4 Do Myprocedure
>
>Bear in mind that the Prompt of Bar 1 of Menu4 is similar to another
>called by another menu option (NOT BAR 1) of Menu1 which has its own prompt. While in Myprocedure how do you trace the heirarchy ?

Well, in this case, instead of:
ON SELECTION POPUP Menu4 Do Myprocedure
You could use:
ON SELECTION POPUP Menu4 Do Myprocedure with "Option 4"
or the equivalent:
ON SELECTION POPUP Menu4 Myprocedure("Option 4")
The text, "Option 4" in the example, can provide all the information you want. Just use different parameters for your different prompts, accept the parameters in function MyProcedure(), and act accordingly.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform