Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I delete all the records from a TClientDataset at once?

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

like image 576
Salvador Avatar asked Oct 24 '10 01:10

Salvador


1 Answers

Yes it is possible, you must use the EmptyDataSet procedure.

try this

 ClientDataSet1.DisableControls;
 try
   ClientDataSet1.EmptyDataSet;
 finally
   ClientDataSet1.EnableControls;
 end;
like image 109
RRUZ Avatar answered Oct 13 '22 09:10

RRUZ