Table of contents
TOC
Collapse the table of content
Expand the table of content

Text.ReplaceRange

Owen Duncan|Last Updated: 4/19/2018

About

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

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

Arguments

ArgumentDescription
textThe text to parse.
offsetThe beginning of the range.
lengthThe length of the range.
newTextThe replacement text.

Example

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