Live Chat by Hybrid Solutions
Knowledgebase
StringReplace
Posted by Mohammad Rahhal on 20 January 2012 09:39 PM

Syntax

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

This function replaces a sub string with another sub string in a text of string.

Parameters

Key Description 
expression Required, string expression containing sub string to replace.
Find

Substring being searched for.

replaceText replacement substring.

Return value

Returns a string in which a specific substring has been replaced with another substring.

Sample

Public Sub main()

  Dim x

  x="1234"

MsgBox StringReplace(CSTR(x), "1","replace text") 'Message box will display the result as: replace text234

End Sub


See Also


Back to VTL Client Script Index

(0 votes)
This article was helpful
This article was 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. This is required to prevent automated registrations and form submissions.

Help Desk Software by Hybrid Solutions