General information
Category:
Coding, syntax & commands
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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only