Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement