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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy Records between Unlinked ClientDataSets?

Status
Not open for further replies.

Tony1l

Programmer
Dec 21, 2002
30
US
Is there a method to have several empty ClientDataSets setup at design so that they might become containers for specific records from the 1st. (All having the same fields & structure)
The difficulty I have stems from setup of the DataSetProvider if I select ClientDataSet1 for Database then open DataSet2 it copies all the records from the 1st DataSet.

Purpose:
Querys are slow on our Database Server and can take several minutes to process and later when taking a refreshed look I want to skip certain records. I could use a stringlist but there must be an elegant approach and why not empty datasets?

Thanks so much!
 
For the record there may be a better answer..I'm wanting to be a bit more efficient with system resources but used a workaround. I created a procedure to empty the duplicate datasets.

for (i):=0 to (dataset2.recordcount) -1 do
dataset2.delete;


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top