Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Executing a menu command from a form?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00088965
Message ID:
00089058
Vues:
28
I would take all my menu code out of the menu itself, and just have the menu call a function such as:

DO MenuHit IN MyMain With "EXIT"

Then your MenuHit code, which you can place in your main{} program MyMain.prg, will have a big DO CASE statement which calls everything. It is easy to call any menu option from anywhere with this setup. Besides, you often want to have a toolbar as well as the menu, and the ability to call up forms from other forms. There are certain cases where you need to get a little more complex to let stuff get out of memory and you can handle this too. It depends what the problem is.

-Adam
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform