Text.PadLeft(Integer [, Char]) Method

Version: Available or changed with runtime version 1.0.

Returns a new Text that right-aligns the characters in this instance by padding them on the left, for a specified total length.

Syntax

Result :=   Text.PadLeft(Count: Integer [, Char: Char])

Note

This method can be invoked without specifying the data type name.

Parameters

Text
 Type: Text
An instance of the Text data type.

Count
 Type: Integer
The number of characters in the resulting string, equal to the number of original characters plus any additional padding characters.

[Optional] Char
 Type: Char
A padding character.

Return Value

Result
 Type: Text
The end result Text.

See Also

Text Data Type
Getting Started with AL
Developing Extensions