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。我是新手,望多多指教