Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP60- Close Button
Message
De
13/09/2000 07:53:39
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
12/09/2000 14:23:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00415363
Message ID:
00415712
Vues:
16
Use 'nodefault' instead of 'return .f.'
IF MESSAGEBOX('Release?',4) = 7
	nodefault
ENDIF
Cetin

>In the QueryUnload event of a form I have the following code and the form it's being released if I select Yes or No.
>
>IF MESSAGEBOX('Release?',4) = 7
> RETURN .F.
>ELSE
> THISFORM.Release()
>ENDIF
>
>
>
>>>I always disable the close option (Upper Right Corner) in my applications and put an exit button on the form so the user can finish the session.
>>>
>>>This time I want to use the close button and display a simple messagebox so the user can confirm the exit of the program. If I put the code in the Destroy or Unload event of the form it's too late to go back in case the user doesn't want to exit the form. How do I control the Close Button? Where do I put the code? I know I am missing something here but don't know what.
>>>
>>>Thank you in advance.
>>
>>
QueryUnload.
>>Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform