Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>right()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
RIGHT()


Syntax:     RIGHT(<expC>, <expN>)

Purpose:    To extract a specified number of characters from a character
            string beginning with the rightmost character.

Arguments:  <expC> is the character string from which to extract
            characters.

            <expN> is the number of characters to extract.

Returns:    A character string.

            RIGHT() returns the rightmost <expN> characters of <expC>.
            If <expN> is negative or zero, RIGHT() returns a null string
            ("").  If <expN> is larger than the length of the character
            string, RIGHT() returns the entire string.  The maximum
            string size is 65,535 (64K) bytes.

Usage:      Note that RIGHT() is the same as SUBSTR() with a negative
            first argument.  For example, RIGHT("ABC", 1) is the same as
            SUBSTR("ABC", -1)

Library:    EXTEND.LIB


----------------------------------- Example --------------------------------

   ? RIGHT("ABCDEF", 3)             && Result: DEF
   ? SUBSTR("ABCDEF", -3)           && Result: DEF


See Also: LEFT() LTRIM() TRIM() STUFF() SUBSTR()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson