Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_StringCaseSensitiveString Functions

Public Function PadRight (
s As String,
TotalWidth As Integer,
Optional PadChar As String = " "
) As String

Pad out the string with characters from the right until it is TotalWidth wide. If the string is TotalWidth chars wide or wider already, it is returned unmodified. This function does not truncate strings: see FixedWidthStr to pad and truncate.

s as String

The string to pad

TotalWidth as Integer

The width to pad to

Optional PadChar as String = " "

The character to use for padding, by default a space

Call Template:

Dim s As String
s = xf.StrCS.PadRight(s, TotalWidth)
s = xf.StrCS.PadRight(s, TotalWidth, PadChar)

See Also:

Example 1:

xf.Str.PadRight("Bear", 10, " ")   => "Bear      "
xf.Str.PadRight("Bear", 10, "x")   => Bearxxxxxx
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd