用ORD()函数,例:
S := S + 'The ASCII code for "c" is ' + IntToStr(Ord('c'));

解决方案 »

  1.   

    自己查联机帮助,Delphi自带的。
      

  2.   

    Returns the ordinal value of an ordinal-type expression.UnitSystemCategoryordinal routinesfunction Ord(X);DescriptionX is an ordinal-type expression. The result is the ordinal position of X; its type is the smallest standard integer type that can hold all values of X's type.Ord cannot operate on Int64 values.
      

  3.   

    多谢谢cdp128,等下加分
    不要笑我这只菜鸟呀,因为真的没有这方面的资料看,学起来很难呀,请问谁有,可以给一份我吗?或者介绍一下哪本书有这方面的介绍的,谢谢