>I have a very small application in VFP 6 SP4 that works fine as an .APP but just flashes (does not stop - just goes throught) as an executable .EXE
>
>How come?
The "typical" stratup for a VFP app usually goes something like this:
SET TALK OFF
[... more SETs here]
DO MENU.MPR
READ EVENTS
*(Read Events will process all of the events that occur in VFP like Click, Valid, etc) Use a CLEAR EVENTS to tell the READ EVENTS to stop processing events and continue to the next line of code after the READ EVENTS. Typically your CLEAR EVENTS will go behind the File|Exit menu option or in the ExitApp method of an application object.
* Maybe log the app shutting down or something here.
Hope this helps!
Jim Duffy
Microsoft MVP
INETA Speaker
TakeNote TechnologiesDeveloper's Choice Award Winner for Best Training Company
Specializing in VB.NET, ASP.NET, VFP, and SQL Server Training and Development