Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menu Prompts
Message
De
07/03/2005 10:43:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
07/03/2005 10:39:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Titre:
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00993270
Message ID:
00993286
Vues:
13
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform