LSet()

Syntax

Result$ = LSet(String$, Length [, Character$])
Description
Pads a string to the left, and adds 'space' character to fit the specified length. The optional 'Character$' parameter may be used to replace 'space' with another character. If the string is longer than the specified 'Length', it will be truncated to 'Length' characters, starting from the left side of the string.

Example:


  Debug LSet("L", 8)          ; will display "L       "
  Debug LSet("L", 8, "-")     ; will display "L-------"
  Debug LSet("LongString", 4) ; will display "Long"

Supported OS

All

<- LCase() - String Index - LTrim() ->