Syntax
Public Function StringReplace(expression As String, Find As String, replaceText As String) As String
Description
This function is used to replace a sub string with another sub string in a text of string.
Parameters
Key | Description |
expression | String expression containing sub string to replace, value of type String |
Find | Substring being searched for,value of type String |
replaceText | replacement substring, value of type String. |
Return value
Returns a string in which a specific substring has been replaced with another substring.
Sample
Public Sub main() Dim x x="1234"AlertMessage StringReplace(CSTR(x), "1","replace text") 'Alert Message will display the result as: replace text234End Sub
See Also