ChartOfAccountsObject.<Chart of accounts name>.Level

Syntax:

Level()

Returned value:

Type: Number.

Description:

Obtains the account level.

Availability:

Server, thick client, external connection.

Note:

Useful only for multileveled charts of accounts. It needs to be taken into account that the item's level may change, for instance when moved to another group (parent change).
The account level starts from 0. The level equals 0 for a parentless item.

Example:

Message("This element belongs to level " +
          Object.Level());


    

1C:Enterprise Developer's Community