RIGHT()

Extract the rightmost substring of a character expression

Syntax

RIGHT( <cString>, <nLen> ) --> cReturn

Arguments

<cString> Character expression to be parsed

<nLen> Number of bytes to return beggining at the rightmost position

Returns

<cReturn> Substring of evaluation

Description

This functions returns the rightmost <nLen> characters of <cString>. It is equivalent to the following expressions: <fixed> SUBSTR( <cString>, - <nLen> ) SUBSTR( <cString>, LEN( <cString> ) - <nLen> + 1, <nLen> ) </fixed>
Examples
      ? RIGHT( 'HELLO HARBOUR', 5 )     // RBOUR
Status

Ready

Compliance

This functions is CA CLIPPER compatible

Platforms

All

Files

Library is rtl

See Also