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

Text.RemoveRange

Owen Duncan|Last Updated: 4/19/2018

About

Removes count characters at a zero-based offset from a text value.

Text.RemoveRange(text as nullable text, offset as number, count as number) as nullable text  

Arguments

ArgumentDescription
textThe text to parse.
offsetThe index to start at.
countThe number of characters to remove.

Remarks

  • If count is not specified, the default value of 1 is used.

  • If offset is less than zero or more than the length of a text value, or if count if less than zero then an Expression.Error is thrown.

Examples

Text.RemoveRange("abcdef", 2) equals "abdef"  
Text.RemoveRange("abcdef", 2, 2) equals "abef"  
© 2018 Microsoft