PadList

Description

Returns a specified list lengthened using a specified pad character. Padding can be on the left or right of the original list. The resulting list is at least as long as the number of digits specified. If the original list is longer than the number of digits specified, the original list is returned.

Syntax

PadList(String, DelimChar, PadChr:String, PadLeft: Boolean, NewLength:Integer): String 

StringList is the list of strings to apply padding to, separated by the specified delimiter.

Delimiter is the character to use to delineate items in the string list. Supported special characters:

Note:

You must use the name of the delimiter (not the character) and include square brackets around the name.

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.

Example

PadList(1;2;3;4,;,T,3)

The return value is 001;002;003,004.