DocumentObject.<Document name>.Lock

Syntax:

Lock()

Description:

Locks an object, preventing it from being changed by other modes or users.

Availability:

Server, thick client, external connection.

Example:

Try
    NewDocum.Lock();
Except
    DoMessageBox("Can't lock the document.");
EndTry;


    

1C:Enterprise Developer's Community