Skip to main content
Version: 20 R7 BETA

On Close Box

CodeCan be called byDefinition
22FormThe window’s close box has been clicked

Description

The On Close Box event is generated when the user clicks on the clos box of the window.

Example

This example shows how to respond to a close window event with a form used for record data entry:

  //Method for an input form
$vpFormTable:=Current form table
Case of
//...
:(Form event code=On Close Box)
If(Modified record($vpFormTable->))
CONFIRM("This record has been modified. Save Changes?")
If(OK=1)
ACCEPT
Else
CANCEL
End if
Else
CANCEL
End if
//...
End case