Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>ascpos()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ASCPOS()
 Determines the ASCII value of a character at a particular position within a
 string
------------------------------------------------------------------------------
 Syntax

     ASCPOS(<cString>,[<nPosition>]) --> nAsciiValue

 Arguments

     <cString>  Designates the character string that is searched.

     <nPosition>  Designates the character of <cString> for which the
     ASCII value is determined.  The default character is the last character.

 Returns

     The function returns the ASCII value for the character at <nPosition>
     within <cString>.

 Description

     ASCPOS() allows you to determine the ASCII value of a selected key
     within a character string.

 Notes

     .  The returned value can be between 0 and 255.

     .  If <cString> is a null string, or <nPosition> is larger than
        the length of the string, ASCPOS() returns 0.

     .  If <nPosition> is 0, the ASCII value for the last character is
        returned.

 Examples

     .  You can specify:

        ? ASCPOS(String, 5)

     .  Or you can specify:

        ? ASC (SUBSTR(String, 5, 1))


See Also: VALPOS()

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