LEFT()

From Recital Documentation Wiki
Revision as of 12:15, 23 March 2009 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Class

String Data


Purpose

Function to extract substring from left


Syntax

LEFT(<expC>, <expN>)


See Also

AT(), ATNEXT(), INLIST(), OCCURS(), RAT(), RIGHT(), STR(), STREXTRACT(), STRTRAN(), STUFF(), SUBSTR()


Description

The LEFT() function extracts a substring from the left of the character expression <expC> of width <expN> characters wide. The LEFT() function can be used on character fields in index expressions to extract part of the field in the index key.


Example

? left("Christopher",5)
Chris


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer