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 can 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 to the left of the string.

Example:
  Result$ = LSet("L", 8)          ; Result will be: "L       "
  Result$ = LSet("L", 8, "-")     ; Result will be: "L-------"
  Result$ = LSet("LongString", 4) ; Result will be: "Long"

Supported OS

Windows, Linux, MacOS X

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