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 original list is returned.
PadChar(String: String, PadChar: String; PadLeft: Boolean; NewLength: Integer): String
String is the string value on which to perform the function.
PadChar is the character to use for padding the string.
PadLeft specifies whether to pad the string on the left. Valid values: 1, 0, T, F, t, or f.
NewLength is an integer specifying the length of the result.
PadChar(102,0,1,6)
The return value is 000102.