>I have a app which includes a menu, form, and various PRGs. start.prg is compiled into an exe and it calls main.prg:
>
>main.prg:
>do menu.mpr
>do form main
>
>When I run the exe, the runtime starts, then immediatly closes, without leaving time for the user to do anything. How can I stop this from happening. I tried making the form modal, but then the user cannot access the menu. This code works fine in the full version, but runs through without stoping in the runtime. Any help would be appreciated.
Matt,
You need to activate the event handler in VFP. In the development system the command window holds the app up, but in runtime there is no command window. Modify you start.prg to;
* main.prg:
do menu.mpr
do form main
READ EVENTS
and add a quit option to your menu that issues a CLEAR EVENTS.