CrGlobal: StringReplace

StringReplace

replace all occurrances of a substring in a string with a replacement string

 Public Function StringReplace(
	  ByVal Search As String,
	  ByVal Find As String,
	  ByVal Replacement As String,
	  Optional ByVal Escape As String = vbNullString ) As String

Parameters

Search
[ByVal] String. original string
Find
[ByVal] String. substring
Replacement
[ByVal] String. replacement string
Escape
[ByVal] Optional. String. do not replace if the substring is preceded by this string  

Default: vbNullString

Return Values

String -  resulting string

Remarks

See Also

Project crgenlib Overview Class CrGlobal Overview CrGlobal Properties CrGlobal Methods StringRcsKeywordStrip TypeClass