Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Excerpt
hiddentrue

padRight(string, length, \[character\]) Right pad a string to the given length with spaces (or character if provided).


Function: padRight()

Right pad a string to the given length with spaces (or character if provided).

...

ArgumentTypeDescription
stringStringThe string to be padded.
lengthIntegerThe length the string needs to be, including padded characters.
characterStringPadding character to be used.

Examples

padRight(toString(in.Site),2,'0')

if in.Site = 1, padRight() returns '10'.

See Also