Edit

Share via


Label.PadRight(Integer [, Char]) Method

Version: Available or changed with runtime version 15.0.

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

Syntax

Result :=   Label.PadRight(Count: Integer [, Char: Char])

Parameters

Label
 Type: Label
An instance of the Label 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.

Label data type
Getting started with AL
Developing extensions