S
ssh78
Unregistered / Unconfirmed
GUEST, unregistred user!
我的代码运行时出现了错误提示:
Master has detail records.Cannot delete or modify.
请问什么原因?另外哪里可以下载到中文版的错误信息提示?
代码如下:
procedure TForm1.FormCreate(Sender: TObject);
begin
L_count.Caption:=IntToStr(query1.RecordCount);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
query1.FindFirst;
query1.delete;
L_count.Caption:=IntTostr(query1.RecordCount);
end;
end.
Master has detail records.Cannot delete or modify.
请问什么原因?另外哪里可以下载到中文版的错误信息提示?
代码如下:
procedure TForm1.FormCreate(Sender: TObject);
begin
L_count.Caption:=IntToStr(query1.RecordCount);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
query1.FindFirst;
query1.delete;
L_count.Caption:=IntTostr(query1.RecordCount);
end;
end.