Instead of a string use a char (using single quotes), or get the single char as a char. Take it as an int. That is the code value.Originally Posted by patrik08
int asciiVal = '4';
Note that if you want to get the numeric value of a numeric char, you can do it easily like this:
int num = '4' - '0';
And, going the other way:
char value4 = '0' + 4;
rickb
Bookmarks