Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble w/ runtime
Message
 
To
12/11/1998 18:10:57
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00157220
Message ID:
00157224
Views:
23
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform