🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #3596

Re: Updating datasets

#3596
From: Uros Obradovic
Date: Wed, 17 Jul 2002 17:59
21 lines
1418 bytes
I'd rather say its better if you update tables.
Lets say you have ADOTable1, ADOTable2, try to do something like this

ADOTable1->Open();
ADOTable1->Edit();
ADOTable1->FieldByName("the_name_of_the_field")->AsString = DBEdit1->Text;
.
..
ADOTable2->Open();
ADOTable2->Edit();
ADOTable2->FieldByName("the_name_of_the_field")->AsInteger = DBEdit5->Text;
.
..
ADOTable1->Post();
ADOTable2->Post();

this is all you gotta put and it should work.
i tried to work w/ datasets but i found this way easier for me.

Good luck
Uros
Technical Details
Message-ID: <3d35b0b3$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3d33dadd$1_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,d95cd720df6e47c
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-07-17 11:14:33 PST
Reply-To: "Uros Obradovic" <ouros@hotmail.com>
From: "Uros Obradovic" <ouros@hotmail.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3d33dadd$1_2@dnews>
Subject: Re: Updating datasets
Date: Wed, 17 Jul 2002 10:59:34 -0700
Lines: 23
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: 134.71.141.37
Message-ID: <3d35b0b3$1_2@dnews>
X-Trace: dnews 1026928819 134.71.141.37 (17 Jul 2002 11:00:19 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!dnews