Salvador
Salvador

Reputation: 16472

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

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

Upvotes: 25

Views: 25155

Answers (1)

RRUZ
RRUZ

Reputation: 136391

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

try this

 ClientDataSet1.DisableControls;
 try
   ClientDataSet1.EmptyDataSet;
 finally
   ClientDataSet1.EnableControls;
 end;

Upvotes: 48

Related Questions