Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On shutdown in a top level form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01004502
Message ID:
01004504
Vues:
17
>I am working on an application that uses a top level form a the main form. I thought I could issue an on shutdown to control how the application closes. However the command doesnt seem to work. Is there anyway I control how the application closes when a user clicks on the close box in a top level form.
>
>Many thanks in advance for any help on this topic

Put in QueryUnload Event of the form:
LOCAL cOnShut
cOnShut = ON("SHUTDOWN")

IF .NOT. &cOnShut && The Function/Procedure you use for ON SHUTDOWN must returns .t. or .f. to check if all is OK during SHUTDOWN
   NODEFAULT
   RETURN .f.
ENDIF
(not tested)
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