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

Text.PadStart

Owen Duncan|Last Updated: 4/19/2018

About

Returns a text value padded at the beginning with pad to make it at least length characters. If pad is not specified, whitespace is used as pad.

Text.PadStart(text as nullable text, length as number, optional pad as nullable text) as nullable text  

Arguments

ArgumentDescription
textThe text to parse.
lengthThe length to pad to.
optional padThe text to pad with. If pad is not specified, whitespace is used as pad.

Examples

Text.PadStart("xyz", 5, "a") equals "aaxyz"  
Text.PadStart("xyz", 9, "pad") equals error  
© 2018 Microsoft