
Chapter 15. Function Reference
329
____________________________________________________________________
LEFT String function
LEFT$
Returns the specified number of leftmost characters from a given string expression.
____________________________________________________________________
Syntax:
Syntax:Syntax:
Syntax:
LEFT$(stringexpression,stringlength)
Parameter:
Parameter:Parameter:
Parameter:
stringlength
A numeric expression which returns a value from 0 to 255.
Description:
Description:Description:
Description:
LEFT$ extracts a portion of a string specified by stringexpression by the number of
characters specified by stringlength, starting at the left side of the string.
• If stringlength is zero, LEFT$ returns a null string.
• If stringlength is greater than the length of stringexpression, the whole
stringexpression will be returned.
Run
RunRun
Run-
--
-time errors:
time errors:time errors:
time errors:
Error code Meaning
05h
Parameter out of the range
(stringlength is out of the range.)
Reference:
Reference:Reference:
Reference:
Functions: LEN, MID$, and RIGHT$
Comentários a estes Manuais