Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preventing an App from ending
Message
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00347383
Message ID:
00347592
Views:
21
>Hi,
>I have written an app which uses a menu to start all forms/programs/reports etc.
>
>What do I need to put in the menu exit code to prevent the app from ending if there are any programs still running? Can I detect any running forms etc?
>
>Thanks, Chris

Crhis,

DO NOT make the menu your Main file in the project. Create a program that runs your menu, something like this;
* Startup.prg

DO MyMenu.mpr
READ EVENTS
The Read events will keep you application running. You will also need to provide the user a way to end the application, perhaps one of the menu options that will issue CLEAR EVENTS.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform