procedure TForm1.BtnPointClick(Sender: TObject);
begin
if (numstr[numindex].IndexOf('.')>= 0) then
exit;
numstr[numindex]:=numstr[numindex]+'.';
edit1.Text:=numstr[numindex];
end;这里是做计算器程序时判断小数点有没有重复的,这是一本书上写的例子,但总在 if (numstr[numindex].IndexOf('.')>= 0) then这举报错
Record,object or class type required.其中numstr是string型的数组,numindex是int。我是新手,望多多指教
begin
if (numstr[numindex].IndexOf('.')>= 0) then
exit;
numstr[numindex]:=numstr[numindex]+'.';
edit1.Text:=numstr[numindex];
end;这里是做计算器程序时判断小数点有没有重复的,这是一本书上写的例子,但总在 if (numstr[numindex].IndexOf('.')>= 0) then这举报错
Record,object or class type required.其中numstr是string型的数组,numindex是int。我是新手,望多多指教
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货