Developer

FindText

Search for Text string inside columns specified in Cols array.

function FindText(Cols: array of Integer; Text: WideString; StartRow, EndRow: Integer; Options: TNxSearchOptions): Integer;

Parameters


Cols
array of Integer
Specifies array of columns (index) to be searched.
Text
WideString
Text (string) to be found.
StartRow
Integer
Start row of search range.
EndRow
Integer
Ending row of search range.
Options
TNxSearchOptions
Search Options.
This method set LastFoundRow property.

Example:


FoundIndex := NextGrid61.FindText([1, NxTextColumn62.Index], Edit1.Text, NextGrid61.SelectedRow, NextGrid61.RowCount - 1, [soExactMatch]);

See also