Skip to main content

TcxDataFindCriteria.GetPreviousMatchIndex Method

Returns the match index of the nearest record whose row index is less than the focused record’s row index.

Declaration

function GetPreviousMatchIndex: Integer;

Returns

Type
Integer

Remarks

The function returns the match index of the nearest record whose row index is less than the focused record’s row index. If there are no search results or the focused record’s index is less than the lowest row index among all search results, the GetPreviousMatchIndex function returns -1 instead of a match index. In this case, the Find Panel of the associated container control disables the Previous button.

Note

The GoToPreviousMatch function calls the GetPreviousMatchIndex function internally to identify if it should move focus from the current position and where to.

See Also