Form.BeforeClose

Syntax:

BeforeClose(<Cancel>, <StandardProcessing>)

Parameters:

<Cancel>

Type: Boolean.
Close form cancel flag. If the True value parameter is included in the procedure-processing body, then the form close is not performed.
Default value: False.

<StandardProcessing>

Type: Boolean.
This parameter passes a flag indicating whether standard (system) processing of the event is performed. If it is set to False in the body of the handler procedure, standard processing will not occur. Canceling standard processing does not change the way the form closes.
For forms linked with types DocumentObject. and CatalogObject., standard processing consists of checking for modifications, and prompting whether or not to save the object.
Default value: True.

Description:

Occurs before form closes, or when a modal form is closed by timeout. In the event handler, it is possible to cancel both the form closing as well as the standard on-close processing.

Note:

When form is closed by timeout, if closing was cancelled in the handler, then second closiing will be initiated after the same period of time.

    

1C:Enterprise Developer's Community