Quote Originally Posted by patrik08
How to become int code ASCII nummer?

QString onechar= "4"; /* not int */
asci code nummer ??

php is int nummer = ord("4"); target http://php.net/ord
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.

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