[DUG] Ord value of String character

Laurence Bevan Laurence at master.co.nz
Thu Oct 26 09:30:56 NZDT 2006


This is probably simple but I can't get my head around it this morning. I have a string variable of
which I want to obtain the ASCII value of the first character in the string. 

I've tried Ord(String[1]) but keep getting an error. Do I need to cast the first character to a
Byte type or something?

Cheers,
Laurence



More information about the Delphi mailing list