If string expression requires fewer bytes than were fielded to string variable, LSET left-justifies the string in the field, and RSET right-justifies the string (spaces are used to pad the extra positions).
If the string is too long for the field, characters are dropped from the right.
To convert numeric values to strings before the LSET or RSET statement is used, see the MKI$, MKS$, and MKD$ functions.
LSET or RSET may also be used with a nonfielded string variable to left-justify or right-justify a string in a given field.
120 RSET A$=N$
These two statements right-justify the string N$ in a 20-character field. This can be valuable for formatting printed output.
All Frank Sinatra recordings, All Beatles albums, All solo albums from John Lennon, Paul McCartney, George Harrison and Ringo Starr, All Beatles songs, List of Platinum selling albums, Database with hits from 1950 to 1999.
Sought after DLL files, Nutworks magazine (retro), Worldwide ISO and TLD codes, File extensions database, The Hackers dictionary, Free software for the Atari, Amiga and Macintosh, Nokia smartphone, PocketPC, List of all BASIC programming language commands, List of all DOS commands, Free Advanced Bash-Scripting Guide (Linux-Unix)