Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Real Basic Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00294983
Message ID:
00294997
Vues:
22
Nothing. (or maybe a RETURN).
You may want to look at the ON SHUTDOWN command. I create a seperate program and then at the begining of my app I have something like ON SHUTDOWN DO myprg.
Seems like if you've got the code in a Destroy event it might be too late to back out of closing down.


>What is the proper way to verify if a user wants to quit an application? I have the following in my Destroy event, but I don't know what to do if they answer 'No'.
>
>TIA
>
>Answer=MessageBox("Are you sure you want to quit?",276,"Quit?")
>Do Case
>	Case Answer=6 && Yes
>		Close Tables all
>		Close DataBases All
>		Clear Events
>	Case Answer=7 && No
>		(What do I do here?)
>EndCase
>
ICQ 10556 (ya), 254117
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform