CreateRowSearch: ITabRowSearch;
The CreateRowSearch method allows to create an object, searching for a table row.
Sub Main;
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", False, True);
RowSearch.AddCondition(1, "4", False, True);
Result := RowSearch.Execute;
If Result <> Null Then
i:=Result.CurrentRow;
End If;
End Sub Main;
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: