Hi Derek
When you have your menu open in the designer, there is an option on the system "Menu" menu pad to "Generate". This takes the data you have enetered for your menu and creates an executable file from it.
To run your menu, you must execute this file in your startup program. Something like this:
DO mainmenu.mpr
Now, you should also read up on READ EVENTS in the help file because this is how you put VFP into a wait state so that the user can use your menu. So the next command, after your menu is called should always be:
READ EVENTS
To close your menu you must have, somewhere in the menu code the command to cancel the wait state and this is why you hould use the "PROCEDURE" option for the EXIT item in the menu. The procedure would be:
CLEAR EVENTS RETURN
As for executing forms and so on, use the "COMMAND" option from the menu and insert the necessary execution command directly in the menu generator.
There is a lot of documentation in the Help file on the menu generator and its use too.
|