PadLeft(Source: String; Length: Integer; [PaddingChar: Char = " "]): String;
Source. Source string.
Length. The length of the source string after adding characters (the length of the source string + the number of added characters).
PaddingChar. Added character.
The PadLeft method adds the specified number of characters specified in the PaddingChar parameter to the left of the source string passed by the Source parameter.
Sub UserProc;
Var
s, s1: String;
Begin
s := "abcdef";
s1 := String.PadLeft(s, s.Length + 2, 'X');
End Sub UserProc;
After executing the example the "s" variable contains the XXabcdef value.
See also: