LEFT$

command

Return the leftmost n characters of a string.

string$ = LEFT$(string$, n)

n - number of characters; 0 for none, clamped to the string length

See also RIGHT$, MID$.

Example:

PRINT LEFT$("MMBASIC", 2)   ' MM

Source: docs/help/left-dollar.txt inmmcore. On the computer, typeHELP LEFT$.