|Code||Can be called by||Definição|
|22||Formulário||The window’s close box has been clicked|
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?") Save Changes?") If(OK=1) ACCEPT Else CANCEL End if Else CANCEL End if //... End case