Replace
ActionStep Reference » Programming » String Operation » Addendum » Replace
The ActionStep Replace changes the string value after searching a specified string sequence and stores the new string in Result of the result list.
- Open the Programming node in the Workspace Explorer.
- Open the String Operation node.
- In the Addendum node, select the Replace ActionStep.
Parameters:
The ActionStep has the following input parameters:
NAME |
DESCRIPTION
|
---|---|
String |
The string to be replaced.
Allowed Context Scopes [Fixed, Local, Global] Allowed Context Types [Variable, Parameter, Enum] |
Search String
|
The sequence of string(s) to be searched.
Allowed Context Scopes [Fixed, Local, Global] Allowed Context Types [Variable, Parameter, Enum] |
Replace String
|
The string to be replaced after searching a string sequence.
Allowed Context Scopes [Fixed, Local, Global] Allowed Context Types [Variable, Parameter, Enum] |
Results:
The ActionStep returns the following results:
name
|
description
|
---|---|
Result |
Contains the new string.
Allowed Context Scopes [Fixed, Local, Global] Allowed Context Types [Variable, Parameter] |
An exception occurs when the value of the Search String parameter is empty. This parameter must have at least a single character.
|
Example 1 (Substitute a symbol in a variable):
This example replaces the text of the local Due Date variable with Text as data type. A specified string was searched through the given String parameter and then replaced with a new character. The result of the new string is then output via Write Text.