kytschBASIC

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

RSET$
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 RSET("Hello World!", 6)

LINE BREAK



PRINT RSET("Hi", 5)

LINE BREAK



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

PRINT string$

Output

Hello
Hi   
Hi   

See also