ValueTreeRowCollection.Find

Syntax:

Find(<Value>, <Columns>, <IncludeSubordinates>)

Parameters:

<Value> (required)

Type: Arbitrary.
Sought value.

<Columns> (optional)

Type: String.
List of comma-separated names of the columns to be searched.
If the parameter is omitted, then all value tree columns are searched.
Default value: Empty string.

<IncludeSubordinates> (optional)

Type: Boolean.
Defines whether the subordinate collection rows (if there are any) will be included in the search. True - subordinate collection rows are included.
Default value: False.

Returned value:

Type: ValueTreeRow; Undefined.
Row containing the sought value. If a value is not found, the Undefined value is returned.

Description:

Searches for values in the specified columns of the value tree row collection.

Availability:

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

Note:

This method is useful for searching unique values.

Example:

FoundString = ContentRows.Find(CurExpense, "Expense");
If 
FoundString = Undefined Then
    DoMessageBox("Expense not found!");
Else
    Count = FoundString.Norm;
EndIf
;


    

1C:Enterprise Developer's Community