LoginLogin
Might make SBS readonly: thread

LEFT$

Root / Documentation / [.]

Created:
Copy a number of characters from the start of a string.

Syntax

LEFT$ string$, length% OUT substring$
InputOutput
string$The string to copy characters from.
length%The number of characters to copy.
OutputDescription
substring$A string consisting of the first length% characters of string$.

Examples

'get the first word
PRINT LEFT$("Hello, world!",5)
'this will be empty
PRINT LEFT$("abcde",0)

No posts yet (will you be the first?)