标签:os io ar art sp on c new ad
用好FDMemTable代替ClientDataSet的内存表转换繁琐步骤。
TClientDataSet *cds = new TClientDataSet(this);
DataSetProvider1->DataSet = dm->ADOQueryPub;
cds->ProviderName = "DataSetProvider1";
cds->Open();
一句就可以了
FDMemTable1->CopyDataSet(dm->ADOQueryPub, TFDCopyDataSetOptions() << coStructure << coRestart << coAppend);
多用FDMemTable,不再用ClientDataSet\DataSetProvider1做转换了
标签:os io ar art sp on c new ad
原文地址:http://www.cnblogs.com/cb168/p/3953841.html