To return a string that comprises the left-most n characters of x$.
n must be within the range of 0 to 255. If n is greater than LEN(x$), the entire string (x$) will be returned. If n equals zero, the null string (length zero) is returned (see the MID$ and RIGHT$ substring functions).
20 B$=LEFT$(A$, 3)
30 PRINT B$
The left-most three letters of the string "BASIC" are printed on the screen.
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)