Delphi ClientDataSet复制记录
2021-09-23 01:14
标签:tco ase assign 字段 nbsp etc 定义 phi source 数据源记录集:ClientDataSetSource;目标记录集:ClientDataSetCopy 1)复制一条记录。 ClientDataSetCopy.Close; ClientDataSetCopy.Fields.Clear; ClientDataSetCopy.FieldDefs.Clear; //复制字段定义 ClientDataSetCopy.FieldDefs.Assign( ClientDataSetSource.FieldDefs); ClientDataSetCopy.CreateDataSet; ClientDataSetCopy.Edit; //Append; //复制当前记录行 ClientDataSetCopy.CopyFields(cds1); 2)复制所有记录。 ClientDataSetCopy.Close; ClientDataSetCopy.Fields.Clear; ClientDataSetCopy.AppendData(ClientDataSetSource.Data,False);Delphi ClientDataSet复制记录标签:tco ase assign 字段 nbsp etc 定义 phi source 原文地址:http://www.cnblogs.com/railgunman/p/7199257.html
文章标题:Delphi ClientDataSet复制记录
文章链接:http://soscw.com/index.php/essay/108098.html