Integration Server 10.3 | Built-In Services Reference Guide | String Folder | Summary of Elements in this Folder | pub.string:padLeft
 
pub.string:padLeft
WmPublic. Pads a string to a specified length by adding pad characters to the beginning of the string.
Input Parameters
inString
String String that you want to pad.
padString
String Characters to use to pad inString.
length
String Total length of the resulting string, including pad characters.
Output Parameters
value
String Contents of inString preceded by as many pad characters as needed so that the total length of the string equals length.
Usage Notes
If padString is longer than one character and does not fit exactly into the resulting string, the beginning of padString is aligned with the beginning of the resulting string. For example, suppose inString equals shipped and padString equals x9y.
If length equals...
Then value will contain...
7
shipped
10
x9yshipped
12
x9x9yshipped
If inString is longer than length characters, only the last length characters from inString are returned. For example, if inString equals acct1234 and length equals 4, value will contain 1234.