SequenceRecordSet.<Sequence name>.BeforeWrite

Syntax:

BeforeWrite(<Cancel>, <Replacing>)

Parameters:

<Cancel>

Type: Boolean.
Indicates that object writing is cancelled. If you set this parameter to True in the body of the handler procedure, the object will not be written and the exception is raised.
Default value: False.

<Replacing>

Type: Boolean.
Set write mode.
True - the set records in the database are replaced by writing.
False - the current record set is added to the database by writing.

Description:

Occurs before the set is recorded. The handler procedure is called after the recording transaction begins but before the beginning of record-set writing.

    

1C:Enterprise Developer's Community