I do not like to create the classic Visual FoxPro menu model in my applications. Instead I use the following FORM with Buttons as the main menu in applications:
|==============| |==============|
Record Exit
new program
customer
|==============| |==============|
Properties in buttons:
User Procedure: User Procedure:
THISFORM.Hide THISFORM.Release
DO RecCust.PRG RETURN TO MASTER
If I click on the "Record new customer" button, the program (RecCust.PRG) to record a new customer is executed in a new windows correctly. But when I finish recording new customers, the program executes a RETURN command in it, but
it did not return to the Form showed above (used as the main application menu) that called it: instead it quits the application. I want the Form above to be showed again, without having to restart the application.
Thank you very much,
Michel
|==============| |==============|
Record Exit
new program
customer
|==============| |==============|
Properties in buttons:
User Procedure: User Procedure:
THISFORM.Hide THISFORM.Release
DO RecCust.PRG RETURN TO MASTER
If I click on the "Record new customer" button, the program (RecCust.PRG) to record a new customer is executed in a new windows correctly. But when I finish recording new customers, the program executes a RETURN command in it, but
it did not return to the Form showed above (used as the main application menu) that called it: instead it quits the application. I want the Form above to be showed again, without having to restart the application.
Thank you very much,
Michel