Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot Quit Visual Foxpro
Message
 
À
23/03/2005 11:15:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Novell 4.x
Database:
Visual FoxPro
Divers
Thread ID:
00998468
Message ID:
00998470
Vues:
37
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform