参数不对,为什么不用inttostr()函数啊

解决方案 »

  1.   

    参数不对,为什么不用inttostr()函数啊
      

  2.   

    procedure FmtStr(var StrResult: string; const Format: string; const Args: array of const);
      

  3.   

    我的意思是把所有的类型,不管是integer的还是float的都转化为string的。
      

  4.   

    procedure FmtStr(var StrResult: string; const Format: string; const Args: array of const);
      

  5.   

    yansea(思宏) 大哥!
    没看懂啊!
    举列行吗?谢谢!
      

  6.   

    还有个fromatstr也是和fmtstr意思一样的,也没搞懂:(
    哪位大哥不惜赐教啊!
      

  7.   

    procedure FmtStr(var StrResult: string; const Format: string; const Args: array of const);This function formats the series of arguments in the open array Args. Formatting is controlled by the format string Format; the results are returned in the parameter StrResult.
      

  8.   

    format('%S',[s]);
    也有问题啊!
      

  9.   

    你这样看看:
    Edit1.Text:=Format('%d',[s]);
    建议用Format而不用IntToStr,为什么呢?
    看看下面的表达使用IntToStr的多长:
    Format('%d+%d+%d+%d+%d+%d=%d',[a,b,c,d,e,f,a+b+c+d+e+f]);
      

  10.   

    还是用format('%s',s);
    这样可以确保无忧!
      

  11.   

    edit1.Text:=string(s);
    用string强制类型转换。
      

  12.   

    fmtstr(aa,'%d',[10666666]);
    label1.caption:=aa;这样这行了
      

  13.   

    好了!还是用format('%s',s);对了!
    我说话算数,先来的就算没对,也有分!