[<<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()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson