Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot Quit Visual Foxpro
Message
 
To
23/03/2005 11:15:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Novell 4.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00998468
Message ID:
00998470
Views:
38
>Hi
>
>Though the above mentioned title is a very common issue but I am facing this problem at the time of shutting down the system. I check the same in Task Manager, but there is no foxpro loaded in Application.
>
>It happens when I run my application from (main.prg) in which master form is defined. Everything works fine and it quits well also. But on shutting down I encounter that problem. Please suggest me ...
>
>Thanks
>
>Saif


Put an ON SHUTDOWN Do CleanUp()
FUNCTION CleanUp()
  *** Here you can check If everiting is OK and then decide if you want to exit
  ***
  IF want_to_exit
     CLEAR EVENT
     CLEAR ALL
     RELEASE ALL
     ON ERROR 
     ON SHUTDOWN
     IF _vfp.StartMode == 0
       RETURN TO Master
     ELSE
        QUIT
     ENDIF
  ENDIF
RETURN ""
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform