我提出申请,要求我把大量数据列入表格,并在表格内改变价值。
电话 我写了大多数时间的申请,似乎正在阻止错误,例如:
未在封闭数据集中采用这种方法
或
tblName not in edit 或insert mode `
我似乎每次都拿到这些东西,他们很容易被 de弄,发现什么是错的。
I m just looking f或some guidance on how I can stop this from happening, I know it s something I am doing. F或example, at the moment I am getting:
无法在封闭数据集上进行这种操作
该法典的某些地方:
procedure TfrmMain.FormClose(Sender: TObject; var Action: TCloseAction);
begin
if not tblSystem.Active then
tblSystem.Open;
if not tblSpecs.Active then
tblSpecs.Open;
tblSpecs.Edit;
tblSpecs.Post;
tblSpecs.Close;
// Post changes to the notes on exit
tblSystem.Edit;
tblsystem.Post;
tblSystem.Close;
end;
以及
procedure TfrmMain.chkAutoUpdateClick(Sender: TObject);
begin
tblSystem.Edit;
if chkAutoUpdate.Checked then
chkInstUpdates.Enabled := True
else
begin
chkInstUpdates.Enabled := False;
tblSystemAutoUpdate.AsBoolean := False;
end;
end;
I m going to assume right away that this is bad code f或pushing/pulling data from a table, any help would be appreciated. Also any debugging help would be amazing.