0]ClientDataSet1.Active 设为true弹出AVdsnap260.bpl错误的解决办法
Access violation at address 5134E27F in module 'dsnap260.bpl'. Read of address 00000000.
:因为与Delphi7冲突,这是先装delphi10.3,再装Delphi7造成的。解决办法,
将Midas.dll从C:\Program Files (x86)\Embarcadero\Studio\20.0\bin\midas.dll
覆盖 掉C:\Windows\SysWOW64\midas.dll
02]最简单代码
{本来可以不写代码, 设置四个属性即可} procedure TForm1.FormCreate(Sender: TObject); begin DBGrid1.DataSource := DataSource1; {DBGrid1 需要连接数据源} DataSource1.DataSet := ClientDataSet1; {数据源 DataSource 需要连接数据集} ClientDataSet1.FileName := 'country.cds'; ClientDataSet1.Active := True; //或 ClientDataSet1.Open; end;
链接:https://pan.baidu.com/s/1Ovp_U0qn_Gr-zrqN0x-Xng
提取码:sais
更多CDS文件下载:D:\Ext.Samples\Samples\Data
//过滤数据 ClientDataSet1.Filter := 'Name like ''%r%''';//Name字段包含 r ClientDataSet1.Filtered := True;