LEFT()
Extract the leftmost substring of a character expression
- Syntax
-
- LEFT(<cString>,<nPos>) --> <cReturn>
- Arguments
-
- <cString> Main character to be parsed
- <nPos> Number of bytes to return beggining at the leftmost position
- Returns
-
- <cReturn> Substring of evaluation
- Description
-
- This functions returns the leftmost <nPos> characters of <cString>. It is equivalent to the following programing expression: SUBSTR(<cString>,1,<nPos>
Examples
? QOUT(LEFT('HELLO HARBOUR',5))
- Status
- Ready
- Compliance
-
- This functions is CA CLIPPER compatible
- Platforms
-
- All
- Files
-
- Library is rtl
- See Also