摘要: 测试图:测试代码:unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, CheckLst, Grids, DBGrids, DB, DBClient;type TForm1 = class(TForm) Cli... 阅读全文
posted @ 2010-02-03 23:00 万一 阅读(2990) 评论(0) 推荐(0) 编辑
摘要: TClientDataSet.UpdateStatus: TUpdateStatus;TUpdateStatus = (usUnmodified, usModified, usInserted, usDeleted);测试图:相关代码:uses TypInfo;procedure TForm1.ClientDataSet1CalcFields(DataSet: TDataSet);begin C... 阅读全文
posted @ 2010-02-03 17:08 万一 阅读(4151) 评论(0) 推荐(0) 编辑
摘要: 相关成员不少, 不亲自测试很难彻底了解其细节; 下面是我的测试:测试代码:unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, DB, DBClient, Grids, DBGrids;type TForm1 ... 阅读全文
posted @ 2010-02-03 16:19 万一 阅读(4292) 评论(0) 推荐(0) 编辑
摘要: //先在窗体添加 ClientDataSet1 和两个 Button{ 初始化测试数据 }procedure TForm1.FormCreate(Sender: TObject);begin with ClientDataSet1 do begin FieldDefs.Add('ID', ftInteger); FieldDefs.Add('Name', ftString, 6); FieldD... 阅读全文
posted @ 2010-02-03 15:35 万一 阅读(4403) 评论(0) 推荐(0) 编辑