PadLeft

Right-aligns the characters in the string by padding them on the left to achieve a specified total length.

Variants

PadLeft(Text text, Numeric length)

Right-aligns the characters in the string by padding them with leading white space on the left to achieve a specified total length.

Parameters

text
The text value to be padded on the left.
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

PadLeft(Text text, Numeric length, Text filler)

Right-aligns the characters in the string by padding them with the specified filler character on the left to achieve a specified total length.

Parameters

text
The text value to be padded on the left.
length
The desired total number of characters in the resulting string.
filler
The text value used as the padding filler on the left side of the text.

Returns

Text

Remarks

If the length of the text exceeds the specified length, the string is not padded.

Examples