<FORM>.CLOSE()

Syntax

<FORM>.CLOSE( [ Check_Flag as L ] )

Argument

Description

Check_Flag

Optional. Default = .F. (FALSE)

  • .T. = Displays a message box to confirm that the operator wants to close the form. Does not trigger the CanExit event.

  • .F. = Does not display a message. Does trigger the CanExit event.

Description

The <FORM>.CLOSE() method closes the layout window.

Supported By

Alpha Five Version 5 and Above

Limitations

Desktop applications only.

Example

This script is attached to a button on a form:

Parentform.close()

This script closes current form and triggers the CanExit event.

topparent.close(.f.)

This script closes the Sales form:

:sales.close()

See Also

Form Functions and Methods