Convert String to Char?
Posted on 2001-08-28
This is probably very easy, but still:
I would like to return the ord() value of a character:
ord('c') returns 99
but if I try to extract the letter from a string like this:
Mystring := midstr(strLongString,nbrStartPos,1); //e.g 'c'
and then want to use the function
nbrThatItIs := ord(Mystring);
I get an error because Mystring is "string" and I need to use Char.
So: How do I best convert my string to char?