Unicode Controls & Classes for VB6 - Version 4

ctlUniRichTextBoxXP.FindSelect Function

Searches the text content for a certain string and selects it. Returns the index of the found string, -1 if the string cannot be found.
The iOptions parameter can be a combination of the [eCtlRichTextBox_FindOptions] enum values

Syntax
Public Function FindSelect (ByVal sText As String, _
Optional ByRef vStart As Variant, _
Optional ByRef vEnd As Variant, _
Optional ByVal iOptions As eCtlRichTextBox_FindOptions = ercFR_DOWN, _
Optional ByVal bScrollCaret As Boolean = True) As Long
Parameters
Parameter Description
ByVal sText As String The text to search
Optional ByRef vStart As Variant (IN/OUT) Start position
Optional ByRef vEnd As Variant (IN/OUT) End position
Optional ByVal iOptions As eCtlRichTextBox_FindOptions = ercFR_DOWN Options
Optional ByVal bScrollCaret As Boolean = True True for scrolling, False otherwise
Remarks