After the form has been closed.

Parameters

none

Property of

Form, OLE, PaintBox, SubForm

Description

Use onClose to perform any extra manual cleanup, if necessary, when you close a form or report. Normally, dBASE Plus automatically discards anything in the form when you close it. You might use onClose if you created an object in the onOpen that you did not bind to the form or report.

Before executing the onClose event handler, dBASE Plus does the following:

  1. Executes the canClose event handler (if any) of the form. If it returns false, the form does not close; nothing further happens.

  2. Executes the valid event handler (if any) of the object that currently has input focus. If it returns a value of false, the form does not close; nothing further happens.

  3. Executes the onLostFocus event handler (if any) of the object that currently has input focus.

  4. Executes the onLostFocus event handler (if any) of the form.

The onClose events of an OLE control executes when the parent form is closed, after the onClose of that form.