Difference between revisions of "RIGHT()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to extract substring from right
 
Function to extract substring from right
 
  
 
==Syntax==
 
==Syntax==
 
RIGHT(<expC> | <memofield>,<expN>)
 
RIGHT(<expC> | <memofield>,<expN>)
 
  
 
==See Also==
 
==See Also==
[[AT()]], [[ATNEXT()]], [[INLIST()]], [[LEFT()]], [[OCCURS()]], [[RAT()]], [[SET STRESCAPE]], [[STR()]], [[STREXTRACT()]], [[STRTRAN()]], [[STUFF()]], [[SUBSTR()]]
+
[[AT()]], [[AT_C()]], [[ATNEXT()]], [[CHRTRAN()]], [[CHRTRANC()]], [[INLIST()]], [[LEFT()]], [[LEFTC()]], [[LEN()]], [[LENC()]], [[OCCURS()]], [[RAT()]], [[RAT_C()]], [[RIGHTC()]], [[SET STRESCAPE]], [[STR()]], [[STREXTRACT()]], [[STRLEN()]], [[STRTRAN()]], [[STUFF()]], [[STUFFC()]], [[SUBSTR()]], [[SUBSTRC()]]
 
+
  
 
==Description==
 
==Description==
 
The RIGHT() function extracts a substring from the right of the character expression <expC> or memo <memofield> of width <expN> characters.  This function can be used on character fields in index expressions to extract part of the field in the index key.
 
The RIGHT() function extracts a substring from the right of the character expression <expC> or memo <memofield> of width <expN> characters.  This function can be used on character fields in index expressions to extract part of the field in the index key.
 
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
? right("Recital Corporation",11)
+
? right("Lianja Inc",3)
Corporation
+
Inc
 
</code>
 
</code>
  
 
==Products==
 
Recital, Recital Server
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:String Data]]
 
 
[[Category:String Data Functions]]
 
[[Category:String Data Functions]]

Latest revision as of 07:09, 15 September 2014

Purpose

Function to extract substring from right

Syntax

RIGHT(<expC> | <memofield>,<expN>)

See Also

AT(), AT_C(), ATNEXT(), CHRTRAN(), CHRTRANC(), INLIST(), LEFT(), LEFTC(), LEN(), LENC(), OCCURS(), RAT(), RAT_C(), RIGHTC(), SET STRESCAPE, STR(), STREXTRACT(), STRLEN(), STRTRAN(), STUFF(), STUFFC(), SUBSTR(), SUBSTRC()

Description

The RIGHT() function extracts a substring from the right of the character expression <expC> or memo <memofield> of width <expN> characters. This function can be used on character fields in index expressions to extract part of the field in the index key.

Example

? right("Lianja Inc",3)
Inc