CT_ASCPOS

 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()

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.