Knowledgebase:
StringReplace
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 09 July 2017 03:55 PM

Syntax

Public Function StringReplace(expression As String, Find As String, replaceText As String) As String

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 text234

End Sub


See Also


Back to VTL Client Script Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions