Replace Function

Description:

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

Format:

result = Replace(input_string, search_string, replace_string);

Parameter:

input_string

A string expression containing substring to replace.

search_string

A string expression being searched for.

replace_string

A string expression defining the replacement substring.

Example:

STRING newStr;

newStr = REPLACE("Gates, my name is Gates", "Gates", "Bond");
LOG "newStr = " + newStr;

Output:

newStr = Bond, my name is Bond





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap