How can I delete all the records from a TClientDataset at once?
-
25-09-2019 - |
Question
Is possible delete all the records from a TClientDataset
at once?
Solution
Yes is possible, you must use the EmptyDataSet
procedure.
try this
ClientDataSet1.DisableControls;
try
ClientDataSet1.EmptyDataSet;
finally
ClientDataSet1.EnableControls;
end;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow