there is no overloaded version of floattostr that can be....
delphi吧
全部回复
仅看楼主
level 4
there is no overloaded version of floattostr that can be called with this arguments
具体代码是
n:=0;
for i := 1 to stringgrid1.RowCount-1 do
begin
stringgrid1.cells[5,i]:=floattostr(xx[i+2+n]);//这里出现了上述问题
stringgrid1.cells[6,i]:=xx[i
+3
+n];
if stringgrid1.Cells[1,i] = stringgrid1.Cells[1,i+1] then;
n:=n+1;
if stringgrid1.Cells[1,i] =stringgrid1.Cells[1,i+1] then;
n:=n+2;
end;
什么情况啊
2014年05月26日 10点05分 1
level 13
xx到底是什么类型?
stringgrid1.cells[5,i]:=
floattostr(xx[i+2+n]);
stringgrid1.cells[6,i]:=
xx[i+3+n];
这两句摆明就互相矛盾。
2014年05月26日 11点05分 2
xx 为double类型,加了floattostr后就会出现上述错误,怎么回事啊
2014年05月26日 14点05分
回复 饮冰的人shui :如果xx是double数组,那么你的stringgrid1.cells[6,i]:=xx[i+3+n];这句不是作死么?
2014年05月26日 14点05分
回复 顶之座__赫卡特 :这个有错误知道,就是它上句是怎么回事?也有错误。
2014年05月26日 14点05分
回复 饮冰的人shui :把xx的定义给出来看看。
2014年05月26日 14点05分
level 8
floattostr 这用错了
2014年05月30日 06点05分 3
1