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>left()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LEFT()


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

Purpose:    To extract a specified number of characters from the left of
            a character string.

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

            <expN> is the number of characters to extract.

Returns:    A character string.

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

Library:    EXTEND.LIB


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

   ? LEFT("ABCDEF", 3)              && Result: ABC


See Also: AT() LTRIM() RIGHT() STUFF() SUBSTR() TRIM()

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