# Find and FindEx Methods

## Applies to

THtmlViewer, TFrameViewer, and TFrameBrowser components

## Declaration

function Find(const S: WideString; MatchCase: boolean): boolean;

function FindEx(const S: WideString; MatchCase, Reverse: boolean): boolean;

## Description

Use the FindEx method for new programs. The Find method exists for backwards compatibility only.

The FindEx method searches through the HTML document for the string, S, returning True if the string is found. If MatchCase is True, a case sensitive search is made. If Reverse is True, the search is made in the reverse direction.

Text is searched starting at the current caret position. As each match is found, the text is highlighted, and the caret is placed at the further end of the matched string.

Note that in many cases, the caret will not be visible. However, it is still possible to place the virtual caret at any position by left clicking with the mouse.

To make the caret visible, see the htOptions and fvOptions propeties.

## See Also:

SelText Property

SelStart Property