QueryUnload Event

Occurs before a form is unloaded.

PROCEDURE Form.QueryUnload

Remarks

Applies To: Form

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

Reference

CLEAR Commands

ControlBox Property

DEFINE CLASS Command

Destroy Event

QUIT Command

RELEASE Command

Release Method

RELEASE WINDOWS Command

ReleaseType Property

Unload Event

Closable Property

NODEFAULT Command

Other Resources

Events (Visual FoxPro)