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

Syntax:     ASCPOS(<expC>[,<expN>])

Arguments:  <expC> is the string to be searched.
            <expN> specifies the character within <expC> whose ASCII
            value is returned.

Returns:    A numeric value.
            The function will return the ASCII value of the character at
            the <expN> position within the <expC> string.

Usage:      The function can be used to determine the ASCII value of
            any character within a string, having the use multiple
            functions.

Notes:      The value returned will be in the range of 0 to 255.  The
            last character of <expC> is assumed in the absence of the
            <expN> argument.  If <expC> is a null string, or the value for
            <expN> is greater than the length of the string, ASCPOS()
            will return 0.

Library:    CT1.LIB


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

Examples:   * Instead of:

            string = "ABCDEFGHIJ"
            ? ASC(SUBSTR(string,5,1))

            * It is now possible to specify:

            string = "ABCDEFGHIJ"
            ? ASCPOS(string,5)




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