Article View: borland.public.cppbuilder.database.ado
Article #3741Re: how to get the data from a ADODataSet
From: Sander
Date: Sun, 30 Jun 2002 14:31
Date: Sun, 30 Jun 2002 14:31
43 lines
1665 bytes
1665 bytes
thank you!
"Ronald Loonstra" <r.loonstra@codefit.nl> schreef in bericht
news:3d1e26d5$1_1@dnews...
> 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:
<3d1f164c_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3d1d7654$1_2@dnews> <3d1e26d5$1_1@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-30 07:38:51 PST From: "Sander" <sanderh@chello.nl> Newsgroups: borland.public.cppbuilder.database.ado References: <3d1d7654$1_2@dnews> <3d1e26d5$1_1@dnews> Subject: Re: how to get the data from a ADODataSet Date: Sun, 30 Jun 2002 16:31:32 +0200 Lines: 45 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: 213.73.169.191 Message-ID: <3d1f164c_1@dnews> X-Trace: dnews 1025447500 213.73.169.191 (30 Jun 2002 07:31:40 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!dnews