Article View: borland.public.cppbuilder.database.ado
Article #3740Re: how to get the data from a ADODataSet
From: Ronald Loonstra
Date: Sat, 29 Jun 2002 21:33
Date: Sat, 29 Jun 2002 21:33
36 lines
1512 bytes
1512 bytes
Sander,
Use DB-aware controls like DBEdit, DBGrid etc..
or:
After the SELECT statement and setting DS->Active to true:
DS->First();
while (!DS->Eof)
{
....
// do your reading here, for example:
ShowMessage(DS->FieldByName("MyField")->Value);
....
DS->Next();
}
--
HTH
Ronald Loonstra
CodeFit Applications
www.codefit.nl
"Sander" <sanderh@chello.nl> schreef in bericht news:3d1d7654$1_2@dnews...
> I've done a SELECT statement and the data is in my ADODataSet. How how do
I
> loop trougt the ADODataSet so that I can read my data??
>
> Thanx,
>
> Sander
>
>
Technical Details
Message-ID:
<3d1e26d5$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!peer.news.opaltelecom.net!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3d1d7654$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,195a1367ef0796fe X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-06-29 14:31:19 PST From: "Ronald Loonstra" <r.loonstra@codefit.nl> Newsgroups: borland.public.cppbuilder.database.ado References: <3d1d7654$1_2@dnews> Subject: Re: how to get the data from a ADODataSet Date: Sat, 29 Jun 2002 23:33:18 +0200 Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 217.121.245.5 Message-ID: <3d1e26d5$1_1@dnews> X-Trace: dnews 1025386197 217.121.245.5 (29 Jun 2002 14:29:57 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!peer.news.opaltelecom.net!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews