Icon Pad

Unit: WebCore

Available In: Client and Server Applications

function Pad(const Value: String; PadLen: Integer;
             PadChar: Char=' '): String

The Pad function returns the Value input parameter padded to the length specified by the PadLen input parameter. The optional PadChar input parameter specifies the character to be used for padding the Value input parameter, and defaults to a space (' ') character. The return value is a String value.

Information The padding is inserted on the left side of the string.

Examples

X := Pad('100', 10);  // X is '       100'
Image