🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: how can I get compute field value from ADO client?

#4189
From: Junlin Xie
Date: Fri, 15 Mar 2002 02:14
30 lines
1889 bytes
Thanks for reply, I've got help from microsoft newsgroup, it's very easy to
get compute field, just use ADODataSet->NextRecordset().

Junlin Xie
"Lee Gan" <leegan@hotmail.com> wrote in message news:3c90e69a$1_1@dnews...
> One example is:
>
> ADOQuery->SQL->Add("SELECT SUM(Fiels1) AS Field1, COUNT(Field2) AS Field2
> FROM Table WHERE Dates BETWEEN #Date1# AND #Date2# GROUP BY Field1");
>
> Then retrive the values like this:
>
> x = ADOQuery->FieldByName("Field1")->Value;
>
> Hope the above helps. Lee Gan
>
> "Junlin Xie" <jlxie@yahoo.com> wrote in message news:3c9069e9_1@dnews...
> > Hi,
> >     I want to get a summary information using SELECT statement with
> COMPUTE
> > clause, but after execute SQL statement, I have no idea to find the
> compute
> > field from ADO client, how can I get compute field value? Thank you!
> >
> >
> > Junlin Xie.
> >
> >
>
>
Technical Details
Message-ID: <3c915976_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!62.24.128.9.MISMATCH!news-1.opaltelecom.net!newsfeed.icl.net!opentransit.net!fu-berlin.de!news.boerde.de!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!KWeb!dnews
References: <3c9069e9_1@dnews> <3c90e69a$1_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,238de2d6450cb5fb
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-03-14 18:24:53 PST
Reply-To: "Junlin Xie" <jlxie@yahoo.com>
From: "Junlin Xie" <jlxie@yahoo.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3c9069e9_1@dnews> <3c90e69a$1_1@dnews>
Subject: Re: how can I get compute field value from ADO client?
Date: Fri, 15 Mar 2002 10:14:36 +0800
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
NNTP-Posting-Host: 202.105.138.4
Message-ID: <3c915976_1@dnews>
X-Trace: dnews 1016158582 202.105.138.4 (14 Mar 2002 18:16:22 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!62.24.128.9.MISMATCH!news-1.opaltelecom.net!newsfeed.icl.net!opentransit.net!fu-berlin.de!news.boerde.de!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!KWeb!dnews