>Hi everyone,
>
>I have a form that is running correctly in Visual FoxPro environment but when I built an exe for it, this exe file does not run any more by itself. What should I do?
>
Build a simple, minimal MAIN program that starts things up; if the form is not modal, put a READ EVENTS in it. If your form is not modal, add a CLEAR EVENTS to the Release method of the form as well.
*MAIN.PRG
ON SHUTDOWN DO SHUTDOWN
DO FORM MyForm
* if form is modal, you can omit the next line
READ EVENTS
DO SHUTDOWN
PROCEDURE SHUTDOWN
ON SHUTDOWN QUIT
CLOSE ALL
CLEAR ALL
QUIT