kytschBASIC

Put down that phone!
Please view me on real computer.

LSET
STRING, LENGTH

This function returns a string of characters at a specific length. The STRING will be placed at end of the return. If String is shorter than LENGTH the left hand side is padded with spaces.
If it is longer, it will be truncated.

Example

PRINT LSET("Hello World!", 5)

LINE BREAK



DEF string$=LSET("Hi", 5)

PRINT string$

Output

Hello
   Hi

See also