Article View: borland.public.cppbuilder.database.ado
Article #4098Re: How to copy only one row from a dataset to another dataset?
From: Sorokoletov Gregory
Date: Fri, 12 Apr 2002 07:03
Date: Fri, 12 Apr 2002 07:03
24 lines
1581 bytes
1581 bytes
I do not know a single command, but you can use the following algorithm:
DstDataSet->Insert();
try
{
for(int I= 0; I < SrcDataSet->Fields->Count; I++)
DstDataSet->Fields->ields[I]->Value= SrcDataSet->Fields->ields[I]->Value
}
catch(...)
{
// ERROR
}
DstDataSet->Post();
"Junlin Xie" <jlxie@yahoo.com> wrote in message news:3cb68046_2@dnews...
> Hi,
>
> I have two ADODataSet in a form, I know I can use ADODataSet->Clone to
> copy a dataset to another one, but now I just want to copy one current row
> to another ADODataSet, How can I do this? Thanks!
>
> Junlin Xie
>
>
Technical Details
Message-ID:
<3cb686cd_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!195.40.4.120.MISMATCH!easynet-quince!easynet.net!proxad.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3cb68046_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,cc9c402db8fdbf1 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-04-12 00:09:10 PST From: "Sorokoletov Gregory" <gsorokoletov@sovintel.net> Newsgroups: borland.public.cppbuilder.database.ado References: <3cb68046_2@dnews> Subject: Re: How to copy only one row from a dataset to another dataset? Date: Fri, 12 Apr 2002 11:03:42 +0400 Lines: 26 Organization: Sovintel X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 212.44.130.15 Message-ID: <3cb686cd_1@dnews> X-Trace: dnews 1018595021 212.44.130.15 (12 Apr 2002 00:03:41 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!195.40.4.120.MISMATCH!easynet-quince!easynet.net!proxad.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews