Home > Products > CSHTMLDiff Control > Documentation > User Guide
|
FindNext
|
Previous Top Next |
|
|
| Search for the next matching text string. Start from the last text found using Find method.
|
|
|
| Syntax
|
|
|
| Function FindNext([searchString As String], [wholeWords As Boolean = True], [matchCase As Boolean = False], [searchDown As Boolean = True]) As Boolean
|
|
|
| Return Value
|
|
|
| True if the search-string was found. False otherwise.
|
|
|
| Parameters
|
|
|
| searchString
|
| Optional. Specifies the text to search for. If omitted, FindNext will perform a search for the last text-string passed to Find/FindNext.
|
|
|
| wholeWords
|
| Optional. Specify as True for whole words match only.
|
|
|
| matchCase
|
| Optional. Specify as True for a case-sensitive search.
|
|
|
| searchDown
|
| Optional. Determines where to search relative to the current position. True for forward search, False for backwards search.
|
|
|
| Remarks
|
|
|
| Performs a Find operation relative to the last text found by Find or FindNext methods.
|
| If the text is found, it will be selected in the current view.
|
| Calling FindNext without a previous call to Find has the same effect as calling Find for the first time.
|
|
|
| This operation is available only after a valid call to DoDiff.
|
|
|
| Example
|
|
|
| Private Sub FindAllMyNames_Click()
|
| ' perform a case-sensitive, Forward search for whole words.
|
| Dim bFound As Boolean
|
|
|
| bFound = True ' assume success.
|
|
|
| While bFound
|
| bFound = diffCtrl1.FindNext "John", True, True, True
|
|
|
| If bFound Then MsgBox "string was found"
|
| Wend
|
|
|
| End Sub
|
|
|
| See Also
|
|
|
| Find, DoDiff
|
|
|
|
|