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


Syntax:     ASC(<expC>)

Purpose:    To return the ASCII value of the leftmost character in a
            character expression.

Argument:   <expC> is the character expression to convert to a
            number.

Returns:    An integer numeric value in the range of zero to 255.

Usage:      ASC() is used primarily in expressions where you need to
            perform numeric calculations on the ASCII value of a
            character.

Library:    CLIPPER.LIB


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

   ? ASC("A")                    && Result: 65
   ? ASC("Apple")                && Result: 65
   ? ASC("a")                    && Result: 97
   ? ASC("Z") - ASC("A")         && Result: 25
   ? ASC("")                     && Result: 0


See Also: CHR() INKEY()

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