String - Replace

Creates a new string by replacing every occurrence of a sub-string in a string, and then storing the result (a new "modified" string) in a variable.

Action ID:
Action Category:
Action List Syntax:

60
String
<<VARIABLE>>
= String.Replace (<<SOURCE>>, <<FIND>>, <<REPLACE>>)

Settings

Store result in variable:

The variable that will hold the new string.

Search in:

The "source" string that the search will be performed in.

Search for:

The "target" string that will be replaced by the Replace with string.

Replace with:

The string that will replace each occurrence of the Search for string in the Search in string.

Search is case sensitive

If checked, the Search for string will only be replaced when a case-sensitive match is found. In other words, this controls whether the search for the Search for string in the Search in string will be case sensitive.

Error Codes

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

Examples

Replacing text in an edit field