Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executing a menu command from a form?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00088965
Message ID:
00089058
Views:
29
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
Map
View

Click here to load this message in the networking platform