Question

Is possible delete all the records from a TClientDataset at once?

Was it helpful?

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
scroll top