String.PadLeft (gb.util)
Static Function PadLeft ( String As String, Length As Integer [ , Pad As String ] ) As String
Seit 3.15
Returns a new string that right-aligns the characters in the original string by padding them on the left with a specified string pattern, for a specified total length.
-
String is the string to pad.
-
Length is the final length in UTF-8 characters.
-
Pad is the string pattern used for padding. By default, a space is used.
Examples
Use "gb.util" 'For Gambas Script Only
Print String.PadLeft("Gambas", 10, ".")
Use "gb.util" 'For Gambas Script Only
Print String.PadLeft("Gambas", 16, "×->")