English 中文(简体)
处理表格,防止数据错误
原标题:Handling Tables, preventing dataset errors

我提出申请,要求我把大量数据列入表格,并在表格内改变价值。

电话 我写了大多数时间的申请,似乎正在阻止错误,例如:

未在封闭数据集中采用这种方法

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.

最佳回答

如果我想的话,我要说,这符合以下原则:

tblSystemAutoUpdate.AsBoolean := False;

你试图在数据集实际开放的情况下编辑数据集领域的价值。

当你获得例外信息,并要求你打破或继续打破僵局时,电算中心会提供帮助。 st光观测(标准布局中的双向平线)将显示你的功能,把目前的胎面 call起来,这应该能够引导你享有这一权利。 此外,确保你以“Use Debug DCUs”项目选项建造你的代码。 这将使你能够追查到劳教和武革阵在夸大中的单位。

问题回答

暂无回答




相关问题
what is wrong with this mysql code

$db_user="root"; $db_host="localhost"; $db_password="root"; $db_name = "fayer"; $conn = mysqli_connect($db_host,$db_user,$db_password,$db_name) or die ("couldn t connect to server"); // perform query ...

Users asking for denormalized database

I am in the early stages of developing a database-driven system and the largest part of the system revolves around an inheritance type of relationship. There is a parent entity with about 10 columns ...

Easiest way to deal with sample data in Java web apps?

I m writing a Java web app in my free time to learn more about development. I m using the Stripes framework and eventually intend to use hibernate and MySQL For the moment, whilst creating the pages ...

join across databases with nhibernate

I am trying to join two tables that reside in two different databases. Every time, I try to join I get the following error: An association from the table xxx refers to an unmapped class. If the ...

How can I know if such value exists in database? (ADO.NET)

For example, I have a table, and there is a column named Tags . I want to know if value programming exists in this column. How can I do this in ADO.NET? I did this: OleDbCommand cmd = new ...

Convert date to string upon saving a doctrine record

I m trying to migrate one of my PHP projects to Doctrine. I ve never used it before so there are a few things I don t understand. In my current code, I have a class similar to this: class ...

热门标签