Text.ReplaceRange

About

Replaces length characters in a text value starting at a zero-based offset with the new text value.

Syntax

Text.ReplaceRange(text as nullable text, offset as number, length as number, newText as text) as nullable text  

Arguments

Argument Description
text The text to parse.
offset The beginning of the range.
length The length of the range.
newText The replacement text.

Example

Text.ReplaceRange("abcdef", 2, 3, "xyz") equals "abxyzf"