LEFT$ This command will return a string containing the leftmost characters of the string that was provided.
Syntax
    Return String=LEFT$(String,Value)
Parameters
    String
String The string the command will use
    Value
Integer How many characters to return from string
Returns
The value returned is the leftmost characters of the specified string
Description
If the value is greater than the number of characters in the string then the entire string is return. If the value is negative or zero then an empty string is returned. The value provided should ideally be a positive integer value.
Example Code
    PRINT "hello world  left:";LEFT$("hello world",5);"  mid:";MID$("hello world",5);"  right:";RIGHT$("hello world",5)

    WAIT KEY
See also
TEXT Commands Menu Index