各位,看看下面这行代码能不能运行?  edit1.text:=inttostr(strtoint('xa'));XB,XC,XD,XE都是一样。奇怪,有谁能搞清楚?

解决方案 »

  1.   

    xa = 16进制的A=10
    xb = 16进制的B=11
      

  2.   

    The StrToInt function converts an Integer string, IntegerString such as '123' into an Integer. 
     
    It supports +ve and -ve numbers, and hexadecimal numbers, as prefixed by $ or 0x. strtoint支持以$或者0x开头的16进制表示的数字,所以
    inttostr(strtoint('xa')) = inttostr(strtoint('$a')) = inttostr(strtoint('10'));
      

  3.   

    求的都是字符串中第一个字母的ASCII码
      

  4.   

    TechnoFantasy(冰儿马甲www.applevb.com) ( ) 
    --
    说的对;
      

  5.   

    liuchcn (michael) 
    你要习惯看帮助,其实帮助中写得很清楚了
      

  6.   

    0 1 2 3 4 5 6 7 8 9 a b c d e f16进制
      

  7.   

    应该edit1.text:=inttostr(strtoint($a));吧。
    十六进制数,你把那个x理解错了。