Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems in building executable file
Message
From
07/08/2008 12:57:35
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
07/08/2008 12:42:15
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP3
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01337294
Message ID:
01337306
Views:
9
>My application runs while in Foxpro but will not run from the execuable file. It runs the code in the form load but then quits. No error windows. Any help would be appreciated.
>Jerry

The READ EVENTS command will wait for user input. Your main program can be roughly considered to consist of three parts:

1. The setup code.

2. The single command READ EVENTS, a kind of endless loop that waits for user input.

3. Any cleanup code, once the user quits.

Somewhere - for example, from the menu command "File | Quit", you should give the command CLEAR EVENTS, which will break out of this "endless loop" and run the cleanup code.

By the way, the lack of a READ EVENTS will not only cause problems in the EXE; from the VFP IDE, you will see the Command Window while your program is running - it should normally not be visible.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform