Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Real Basic Question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00294983
Message ID:
00294997
Views:
23
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
Previous
Reply
Map
View

Click here to load this message in the networking platform