Is possible delete all the records from a TClientDataset
at once?
views:
156answers:
1
+12
A:
Yes is possible, you must use the EmptyDataSet
procedure.
try this
ClientDataSet1.DisableControls;
try
ClientDataSet1.EmptyDataSet;
finally
ClientDataSet1.EnableControls;
end;
RRUZ
2010-10-24 01:41:27
DisableControls / EnableControls are not needed in this case.
oodesigner
2010-10-24 04:55:49
True but then the next question becomes: *"how do I speed up clearing a Clientdataset?"*
Lieven
2010-10-24 18:06:51