Exit from App is Bye Bye forever

Author: Javed Aslam

Posted: 1998-12-06 at 11:27:54

Hi,

Code in Setup.prg that is executed on Exit from the App has the following lines:

*-----------------------------------------------

*-- Cleanup after the application is terminated.

*-----------------------------------------------

_screen.MousePointer = MOUSE_DEFAULT

SET PATH TO ( lcOldPath )

RELEASE ALL EXTENDED

CLEAR ALL

IF INLIST(RIGHT(SYS(16,1), 3), "APP", "EXE")

QUIT

ENDIF

The Quit takes one out of the FoxPro completely. I suppose it may be a good thing in the case of an installed App, but in the debug mode, it should probably return the programmer to the VFP so he/she can add a few more bugs to the soup. :-)

Of course, one can always "comment" the 3 lines.

Regards

Javed

©1998 Javed Aslam