Edit

Pad (text, width [, padChar] [, justify = "L|R"])

Result Type: Text

Definition: Pads text to the specified width. By default, if text is a numeric string, it is padded to the right with leading zeroes; otherwise it is left padded with spaces. This can be overridden by specifying padChar and justify. If text is longer than width it is truncated.

Maximum pad width is 255.

Examples:  Pad("1", 4)

returns “0001”

Pad("1", 4, "0", "L")

returns “1000”

Pad("A", 4)

returns “A ”

Pad("1", 4, " ", "L")

returns “    1”