Returns a specified string lengthened using a specified pad character. Padding can be on the left or right of the original string. The resulting string is at least as long as the number of digits specified. If the original string is longer than the number of digits specified, the result is the original string.
PadChar(AString, PadChar: String; PadLeft: Boolean; NewLength: Integer): String
PadChar(102,0,1,6)
The return value is 000102.