Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close button
Message
From
01/10/1999 07:02:47
Luca Meroni
Easy Consult S.R.L.
Milan, Italy
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00270959
Message ID:
00271439
Views:
21
>>Is there a way to prevent the VALID event of an object when the user close a form by clicking the close box on the upper-right corner of a window ?
>>
>>Thanks, Luca
>
>Luca,
>
>Research the ReleaseType property of the form. It is set when the closebox is clicked. I don't recall the numnber for the closebox but it is in the helpfile. Code like this in the valid will do what you want.
>
>
>IF Thisform.ReleaseType = [the number for the close Box]
>   RETURN .T.
>ENDIF
>*** The rest of the valid goes here
>
Thank you very much, Jim.
Previous
Reply
Map
View

Click here to load this message in the networking platform