Unicode Controls & Classes for VB6 - Version 4

ctlUniRichTextBoxXP.FindReplaceAll Function

Find and Replaces all occurences of a string into the text of the control

Syntax
Public Function FindReplaceAll (ByVal sFindText As String, _
ByVal sReplaceText 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 Boolean
Parameters
Parameter Description
ByVal sFindText As String The string to find
ByVal sReplaceText As String The string use as replacement
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