Replace
Replaces a substring in the string value with a new string.
Public Function Replace(
ByRef OldValue As String,
ByRef NewValue As String,
Optional ByRef StartIndex As Variant,
Optional ByRef Count As Variant ) As StringBuilder
Parameters
- OldValue
-
[ByRef]
String.
The substring to be replaced.
- NewValue
-
[ByRef]
String.
The string to replace the old string with.
- StartIndex
-
[ByRef]
Optional.
Variant.
The index of the start of the substring in the StringBuilder object.
- Count
-
[ByRef]
Optional.
Variant.
The number of characters in the StringBuilder object substring.
Return Values
StringBuilder - This instance of StringBuilder.
Remarks
Use StartIndex and Count to replace the old value with a substring of the new value. StartIndex is zero-based.
See Also
Project CorLib Overview
Class StringBuilder Overview