Article View: borland.public.cppbuilder.database.ado
Article #4923Re: coping record
From: Harold Howe (TeamB)
Date: Fri, 31 Aug 2001 03:03
Date: Fri, 31 Aug 2001 03:03
15 lines
1457 bytes
1457 bytes
studio casotti wrote: > > I can get a record using GetCurrentRecord(). But how put this record in > another dataset? Call append on the target dataset and loop through each field and copy the value from the source dataset to the target dataset. When you're done, call Post on the target. Or better yet, create a utility function that does this for you, so you can just pass in the two datasets. PS: When you assign one field to another, the safest way is to use the AsVariant property. It ensures that null fields get copied correctly. Harold Howe [TeamB] http://www.bcbdev.com
Technical Details
Message-ID:
<3B8EFE6B.FA7FC659@bcbdev.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.238.2.15!skynet.be!skynet.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3b8d72b2$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,18894fc8b2cc7228 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-08-30 20:03:56 PST Message-ID: <3B8EFE6B.FA7FC659@bcbdev.com> Date: Thu, 30 Aug 2001 22:03:07 -0500 From: "Harold Howe (TeamB)" <hhowe@bcbdev.com> X-Mailer: Mozilla 4.03 [en] (WinNT; I) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.database.ado Subject: Re: coping record References: <3b8d72b2$1_2@dnews> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.22.227.236 X-Trace: dnews 999226913 24.22.227.236 (30 Aug 2001 20:01:53 -0700) Lines: 15 Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!195.238.2.15!skynet.be!skynet.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews