String.padL

Pads a string to the left with the specified character.

o.String.padL(width,pad)

Parameters

width
The width of the final string. If shorter it's padded with the pad character. If longer the string is trimmed on the right.

pad
Optional - the single character to pad with. Defaults to space (" ")


See also:

Class String

© West Wind Technologies, 1996-2018 • Updated: 03/14/08
Comment or report problem with topic