Posted by Mohammad Rahhal, Last modified by Salameh Abu Hashish on 07 December 2018 02:09 PM


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.


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.


Public Sub main()

  Dim x


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))
Not helpful

Comments (0)
Post a new comment
Full Name:
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