LEFT()
Extract the leftmost substring of a character expression
Syntax
LEFT( <cString>, <nLen> ) --> cReturn
Arguments
<cString> Main character to be parsed
<nLen> Number of bytes to return beginning at the leftmost position
Returns
<cReturn> Substring of evaluation
Description
This functions returns the leftmost <nLen> characters of <cString>. It is equivalent to the following expression:
SUBSTR( <cString>, 1, <nLen> )
Examples
? LEFT( "HELLO HARBOUR", 5 ) // HELLO
Compliance
Clipper
Platforms
All
Files
Library is rtl
Seealso
SUBSTR(), RIGHT(), AT(), RAT()
Pingback: Harbour All Function – L | Viva Clipper !
Pingback: Harbour String Functions | Viva Clipper !
Pingback: Harbour RG Summary | Viva Clipper !