delphi string与integer如何相互转化?

2025-05-11 10:23:02
推荐回答(1个)
回答1:

var
str:string;
count,count2:integer;
begin
count2:=strtoint(edit.text);
count:=count2+1;
edit.text:=inttostr(count);
end;