Is possible delete all the records from a TClientDataset
at once?
Asked
Active
Viewed 2.4k times
23
1 Answers
46
Yes it is possible, you must use the EmptyDataSet
procedure.
try this
ClientDataSet1.DisableControls;
try
ClientDataSet1.EmptyDataSet;
finally
ClientDataSet1.EnableControls;
end;
-
5DisableControls / EnableControls are not needed in this case. – oodesigner Oct 24 '10 at 04:55
-
22True but then the next question becomes: *"how do I speed up clearing a Clientdataset?"* – Lieven Keersmaekers Oct 24 '10 at 18:06