LEFT$
Root / Documentation / [.]
Created:
Copy a number of characters from the start of a string.
Syntax
LEFT$ string$, length% OUT substring$
Input | Output |
---|---|
string$ | The string to copy characters from. |
length% | The number of characters to copy. |
Output | Description |
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?)