edit的值
我想通过在edit里输入值赋给double类型的a
但提示说Incompatible types: 'Double' and 'TCaption'
有什么解决办法吗?
问题点数:20、回复次数:1Top
1 楼haerbin982()回复于 2003-02-03 18:10:33 得分 20
你得进行数据转换
procedure Tform1.button1click(sender:object);
var
a:double;
begin
a:=strtofloat(edit1.text);
showmessage(floattostr(a));
end;Top
相关问题