I want to an edit1.text to display the a number in it , how?(100分)

  • 主题发起人 主题发起人 linyuan
  • 开始时间 开始时间
L

linyuan

Unregistered / Unconfirmed
GUEST, unregistred user!
as title, I want the calculated result to be
displayed in the edit1.text line, but it can't
accept it , you know , because it is string
while the number is a type of real or interger
how can I relaize this?
 
real: edit1.text:=floattostr;
integer: edit1.text:=inttostr;
 
use data type conversion:
example: aaa:=1;
edit1.text :=inttostr(aaa);
 
如上所述
将你要显示的数值使用inttostr("integer") ,floattostr("floats")
函数转换成string类型即可。
 
多人接受答案了。
 
后退
顶部