Article View: borland.public.cppbuilder.database.ado
Article #5409Re: BatchMove
From: Mark Cashman
Date: Fri, 25 May 2001 04:08
Date: Fri, 25 May 2001 04:08
30 lines
1688 bytes
1688 bytes
Hi, Pavel!
Only if you write your own. It isn't that hard...
Table1->First();
while (!Table1->Eof)
{
Table2->Append();
for (int Index = 0; Index < Table1->FieldCount; Index++)
{
Table2->FieldByName(Table1->Fields->Fields[Index]->FieldName)->Value =
Table1->Fields->Fields[Index]->Value;
};
Table2->Post();
}
I hope this gives you some foundation for your own "TADOBatchMove".
------
Mark Cashman (TeamB - C++ Builder), creator of The Temporal Doorway at
http://www.temporaldoorway.com
- Original digital art, writing, music and more -
C++ Builder / JBuilder Tips and The C++ Builder Programmer's Webring
(Join us!)
http://www.temporaldoorway.com/programming/index.htm
------
Technical Details
Message-ID:
<3B0DDABE.C53DAB1A@temporaldoorway.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!newsfeed2.skycache.com!newsfeed.skycache.com!Cidera!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3b0bbb11$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,1fb2f38b603d3414 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-05-24 21:13:25 PST Message-ID: <3B0DDABE.C53DAB1A@temporaldoorway.com> Date: Fri, 25 May 2001 00:08:31 -0400 From: Mark Cashman <mcashman@temporaldoorway.com> Reply-To: mcashman@temporaldoorway.com X-Mailer: Mozilla 4.77 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.database.ado Subject: Re: BatchMove References: <3b0bbb11$1_2@dnews> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.14.197.193 X-Trace: dnews 990763638 24.14.197.193 (24 May 2001 21:07:18 -0700) Lines: 32 Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!newsfeed2.skycache.com!newsfeed.skycache.com!Cidera!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews