PadRight
Left-aligns the characters in the string by padding them on the right to achieve a specified total length.
Variants
PadRight(Text text, Numeric length)
Left-aligns the characters in the string by padding them with trailing white space on the right to achieve a specified total length.
Parameters
- text
- The text value to be padded on the right.
- length
- The desired total number of characters in the resulting string.
Returns
Text
Remarks
If the length of the text exceeds the specified length, the string is not padded.
Examples
PadRight("XYZ", 10)
returns "XYZ ".
PadRight(Text text, Numeric length, Text filler)
Left-aligns the characters in the string by padding them on the right with the specified filler character to achieve a specified total length.
Parameters
- text
- The text value to be padded on the right.
- length
- The desired total number of characters in the resulting string.
- filler
- The text value used as the padding filler on the right side of the text.
Returns
Text
Remarks
If the length of the text exceeds the specified length, the string is not padded.
Examples
PadRight("XYZ", 10, "-")
returns "XYZ-------".