Skip to main content

Substitute

Substitute Function

Substitutes the specified new text for all occurrences of specified old text in a text string.

Syntax

Substitute (scalar StringValue, scalar OldText, scalar NewText)

Arguments

ArgumentDescription
scalar StringValueOriginal text string that will be manipulated
scalar OldTextText in StringValue that will be replaced by NewText
scalar NewTextText to be put into the original StringValue, in place of the OldText

Examples:

Substitute("Black N White","N","And")

Substitute N with And in the given string.