On Close Box
Code | Can be called by | 定義 |
---|---|---|
22 | フォーム | The window’s close box has been clicked |
説明
The On Close Box
event is generated when the user clicks on the clos box of the window.
例題
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