Hi,
TBufDataSet does not have any methods like EmptyTable or EmptyDataSet. So I wrote a quick procedure as follows:
procedure EmptyDataSet(ADataSet:TDataSet);
begin
ADataSet.Active := True;
ADataSet.First;
While not ADataSet.Eof do ADataSet.Delete;
ADataSet.Close;
end;
This works fine for my purpose for now. But I'd like to ask you whether this procedure is applicable to all other datasets, and does not have any problem (which I don't know). Also welcome any other suggestions for this purpose.
Regards,