Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to stop a release process
Message
From
06/09/1996 21:11:35
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00007264
Message ID:
00007380
Views:
44
>Hi Guys,
> I want to stop the "release process" In the RELEASE methode of the form. This is posible ?
>
>All your comments will be appreciate.
>Rock

I am quoting from VFP Help:
"The QueryUnload event occurs before the Destroy event. The ReleaseType property is set prior to the QueryUnload event being called.
The QueryUnload event occurs when CLEAR WINDOWS, RELEASE| WINDOWS, or QUIT is executed in code, when the user double-clicks the Control-menu box, or when the user chooses Close from the Control-menu on a Form.
Note: The QueryUnload event does not occur if you issue the RELEASE command on the Form in code or invoke the Form's Release
method.
Issuing NODEFAULT in the QueryUnload event procedure prevents the Form from unloading."

So, the only situation when QueryUnload is not automatically issued is when you issue a Release in code. That meens that you must handle "the release stop" in QueryUnload and call it before you call Release:

if ThisForm.QueryUnload()
ThisForm.Release()
endif
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform