🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
1 messages
1 total messages Started by Mountain Lan Tue, 31 Jul 2001 14:36
About CloneCursor
#560
Author: Mountain Lan
Date: Tue, 31 Jul 2001 14:36
19 lines
1637 bytes
Hello, everyone!
I am puzzled by a problem about ��CloneCursor�� method of 
TClientDataSet. I called this method to share the data between 
ClientDataSets, then deleted a record in the source data set, it 
seemed like that all records in the source data set were 
cleared. I inspected the properties of the source data set, and 
found that Eof and Bof were both true, while RecordCount was 
greater than zero. I used a grid to display the source data set. 
If I did nothing after deleting a record, there was no row in 
the grid; if I called First or Last, the records remained can be 
shown in the grid. My program was very simple:
TClientDataSet *ClonedDataSet = new TClientDataSet(NULL);
ClonedDataSet->CloneCursor(SourceDataSet, true, false);
delete ClonedDataSet;

Any comment from you is appreciated!

Mountain Lan
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads