ValueTreeColumnCollection.Find

Syntax:

Find(<ColumnDescription>)

Parameters:

<ColumnDescription> (required)

Type: String.
Description of the value tree column.

Returned value:

Type: ValueTreeColumn; Undefined.
If there is no such column, then the value Undefined is returned.

Description:

Searches for the value tree column by name.

Availability:

Server, thick client, external connection, Mobile application (server).

Example:

// PageTree (value tree) contains collection of report pages
For each CurColumn In UserSets.Columns Do
    If PagesTree.Columns.Find(CurColumn.Name) = Undefined Then
        // Delete lacking column
        IndexOf = UserSets.Columns.IndexOf(CurColumn);
        UserSets.Columns.Delete(IndexOf);
    EndIf
;
EndDo
;


    

1C:Enterprise Developer's Community