Xbasic
FORM.CLOSE Function
Syntax
.Close([L no_check])
Arguments
- no_check
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 .CLOSE() method closes the layout window.
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()
Limitations
Desktop applications only.
See Also