Description

Within a variable, replaces all occurrences of one string with another.

Syntax

Swap expression1 With expression2 In variable

Parameters

The Swap function has the following parameters.

ParameterDescription
Expression1A substring within variable that will be replaced.
Expression2The string that takes the place of expression1.
VariableThe string that contains the substring expression1.

Use Convert to swap one character value with another.

See also

Convert

Example

* change CR:LF to text marks
swap \0D0A\ with @TM in text
  • No labels