Example

Dim MyString
‘ A binary comparison starting at the beginning of the string.
MyString = Replace(“XXpXXPXXp”, “p”, “Y”)
‘ Returns “XXYXXPXXY”.

‘ A textual comparison starting at position 3.
MyString = Replace(“XXpXXPXXp”, “p”, “Y”, 3, -1, 1)
‘ Returns “YXXYXXY”.