Article View: borland.public.cppbuilder.database.multi-tier
Article #560About CloneCursor
From: Mountain Lan
Date: Tue, 31 Jul 2001 14:36
Date: Tue, 31 Jul 2001 14:36
19 lines
1637 bytes
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
Technical Details
Message-ID:
<3b66c27e$2_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: fcd2b,797c75958664e17a,start X-Google-Attributes: gidfcd2b,public X-Google-ArrivalTime: 2001-07-31 07:40:32 PST From: "Mountain Lan" <mountainlan@8848.net> Sender: "Mountain Lan" <mountainlan@8848.net> Reply-To: "Mountain Lan" <mountainlan@8848.net> Subject: About CloneCursor Newsgroups: borland.public.cppbuilder.database.multi-tier X-User-Info: 61.130.27.42 61.130.27.42 NNTP-Posting-Host: 207.105.83.65 Message-ID: <3b66c27e$2_1@dnews> Date: 31 Jul 2001 07:36:46 -0700 X-Trace: dnews 996590206 207.105.83.65 (31 Jul 2001 07:36:46 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews