Partager via


QueryUnload Event

Occurs before a form is unloaded.

PROCEDURE Form.QueryUnload

Remarks

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, or when the user double-clicks the window pop-up menu icon or chooses Close from the window pop-up 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.

See Also

CLEAR | ControlBox Property | DEFINE CLASS | Destroy Event | QUIT | RELEASE | Release Method | RELEASE WINDOWS | ReleaseType Property | Unload Event | Closable Property

Applies To: Form