I'm asking if is there a way to convert a unit of a string into a char? to be more clear, is there a way to legalize this instruction:
var
s : String;
begin
s:='stackoverflow';
ord(s[1]); // Illegal expression
end.
Getting the ASCII code from one unit of a string ( which has to be a char ) demanded a complicated algorithm in Object Pascal, can I do it in an easier way?