This documentation is archived and is not being maintained.
char2Num Function
Converts the character in a specific position in a text string to a numeric value (the ASCII value of the text character).
int char2Num(str text, int position)
|
Parameter
|
Description
|
|
text
|
The text string to test.
|
|
position
|
The position in the text string of the character to convert to a number.
|
The numeric value of the character in the text string pointed to by position.
// Returns the numeric value of C, which is 67.
char2Num("ABCDEFG",3);
// Returns the numeric value of A, which is 65.
char2Num("ABCDEFG",1);