>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)