Is possible delete all the records from a TClientDataset
at once?
How can I delete all the records from a TClientDataset at once?
Asked Answered
Yes it is possible, you must use the EmptyDataSet
procedure.
try this
ClientDataSet1.DisableControls;
try
ClientDataSet1.EmptyDataSet;
finally
ClientDataSet1.EnableControls;
end;
DisableControls / EnableControls are not needed in this case. –
Inamorato
True but then the next question becomes: "how do I speed up clearing a Clientdataset?" –
Cortney
© 2022 - 2024 — McMap. All rights reserved.