Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menu Prompts
Message
De
07/03/2005 10:46:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
07/03/2005 10:43:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
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:
00993288
Vues:
16
>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.

Note that if you use parameters, you could change the position, the prompts, or the shortcuts, for your menu options, at any moment, without affecting the action. I think this would be better than trying to detect either the menu position or the prompt.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform