When creating an application (executable), unless you are using a top-level form, you need to stop the application from closing, and have it wait for the user's input. I order to achieve this, you need to use a main program (a program that is "set to main", in the project manager). You actually only need two lines of code to start an application (other lines would be setting the paths for the data, setting the date style, setting global variables etc.).
[ol][li]If you are using a menu with your application, you can use the following in your main program:
DO myMenu.mpr READ EVENTS && The application will stop here and wait.[/li]
[li]If you are using a main form instead of a menu, the same principle applies.
Do form myMainform.scx READ EVENTS[/LI]
[LI]When it coes time to close the application, you needs to use CLEAR EVENTS, either in the QueryUnload of you main form, or in the exit of your menu.[/li][/ol]
This is a simplified version of a main program, but it will eliminate the problem of the application "just flashing" and closing on startup.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.