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


Syntax:     UPPER(<expC>)

Purpose:    To convert lower case alphabetic characters to upper case.

Argument:   <expC> is the character string to convert.

Usage:      UPPER() has a number of different uses.  A common use is to
            compare strings where the specific instance of casing is not
            known.  For example:

            message = "Greetings"
            ? UPPER("greetings") = UPPER(message)

            UPPER() is also useful for creating case independent index
            key expressions.  For example:

            USE Customers
            INDEX ON UPPER(Last) TO Customers
            *
            * Later, use the same expression to lookup Customers.
            mlast = SPACE(15)
            @ 10, 10 GET mlast
            SEEK UPPER(mlast)

Library:    CLIPPER.LIB


----------------------------------- Examples -------------------------------

   ? UPPER("a string")        && Result: A STRING
   ? UPPER("123 char = <>")   && Result: 123 CHAR = <>


See Also: LOWER() ISLOWER() ISUPPER()

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