Show contents 

Tab > Tab Assembly Interfaces > ITabSheet > ITabSheet.CreateRowSearch

ITabSheet.CreateRowSearch

Syntax

CreateRowSearch: ITabRowSearch;

Description

The CreateRowSearch method allows to create an object, searching for a table row.

Example

Sub UserProc;
Var
    MB: IMetabase;
    Rep: IPrxReport;
    Tab: ITabSheet;
    RowSearch: ITabRowSearch;
    Result: ITabSearchResult;
    i: Integer;
Begin
    MB := MetabaseClass.Active;
    Rep := MB.ItemById("Reg_rep").Bind As IPrxReport;
    Tab := Rep.ActiveSheet.Table;
    RowSearch := Tab.CreateRowSearch;
    RowSearch.AddCondition(0"2"FalseTrue);
    RowSearch.AddCondition(1"4"FalseTrue);
    Result := RowSearch.Execute;
    If Result <> Null Then
        i:=Result.CurrentRow;
    End If;
End Sub UserProc;

As a result search for a row will be performed, which contains "2" in the first column, and "4" in the second column. If the search is successful, the variable "i" will contain the number of the found row.

See also:

ITabSheet