var str:String;
var C:Char;
begin
   Str:='abc';
   C:=Str[1];//从1到3都可以
   ShowMessage(inttostr(Ord(C)));//ascii
end;
ascii--->char用chr(65)='a';