padRight
Pads a string to a specified length by adding pad characters to the end 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 followed 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 end of padString is aligned with the end of the resulting string. For example, suppose inString equals shipped and padString equals x9y.
If length equals... | Then value will contain... |
7 | shipped |
10 | shippedx9y |
12 | shippedx9y9y |
If inString is longer than length characters, only the first length characters from inString are returned. For example, if inString equals 1234acct and length equals 4, value will contain 1234.