Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete records from ClientDataSet

Status
Not open for further replies.

yobensh

Technical User
Jan 13, 2006
17
0
0
IL
Hi all,
I'm manipulating a filter on ClientDataSet. Eventually, I need to delete all records shown as the result.
I've tried to use ClientDataSet.Delete, but it's deleting the underlying record only.
Can anyone help me here?

Thanks in advance,
Yoav.
 
Code:
with Table do
begin
  DisableControls;
  try
    First;
    while not Eof do
    begin
    Delete;
    Next;
    end;
  finally
    EnableControls;
  end;
end;

Aaron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top