Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - ch_asc1( <cstring>, [ <nposition> ] ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CH_ASC1( <cString>, [ <nPosition> ] )


Parameters

<cString>
String to examine.

<nPosition>
Character position in the string.


Returns

ASCII value of character at specified position.


Description

If the position is omitted, then the first byte (1) is assumed.


Example

// Display ASCII value of 4th byte of cString
? CH_ASC1(cString, 4)

// Same thing with Clipper function
? ASC(SUBSTR(cString, 4, 1))



See Also: CH_ASC2() CH_ASC4() CH_ASC8()

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