LEFT( ) Function
Returns a specified number of characters from a character expression, starting with the leftmost character.
LEFT(cExpression, nExpression) |
Parameters
- cExpression
-
Specifies the character expression that LEFT( ) returns characters from.
- nExpression
-
Specifies the number of characters returned from the character expression. If nExpression is greater than the length of cExpression, all of the character expression is returned. If nExpression is negative or 0, LEFT( ) returns an empty string.
LEFT( ) uses a starting position of 1 and is identical to SUBSTR( ).
Return Value
Example
See Also
© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08