PadRight
Add spaces to the right of a string till a certain length is reached.
Declaration
Source position: strutils.pp line 191
function PadRight(const S: string; N: Integer) : string;
Description
PadRight add spaces to the right of the string S till the result reaches length Len. If the string S has length equal to or larger than Len, no spaces are added, and the string S is returned as-is. The resulting string is S, left-justified on length Len.
Errors
None.
See also
Name | Description |
---|---|
AddChar | Add characters to the left of a string till a certain length |
AddCharR | Add chars at the end of a string till it reaches a certain length |
PadCenter | Pad the string to a certain length, so the string is centered. |
PadLeft | Add spaces to the left of a string till a certain length is reached. |