The string is expanded by padding from the left.
PadLeft(Integer maxLength; String padChar) : String
- maxLength specifies the new length of the string, once padding is completed. If the current length of the string is equal to or bigger than maxLength, then no changes are made.
- padChar is the string character to use for padding. If more than one character is specified, only the first is used.
s := ("0123").PadLeft(6, " "); //Now s == " 0123";
s := ("0123").PadLeft(9, "ab"); //Now s == "aaaaa0123";