🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Accessing Query result ("SELECT count(*) ...")

#5674
From: Neo
Date: Wed, 07 Mar 2001 15:39
28 lines
1473 bytes
Are you adding the SQL to the query and executing it?


Sandi Wijaya <sandiwijaya@yahoo.com> wrote in message
news:3aa5a085_1@dnews...
> Hi, everyone
>
> I want to ask, about accessing the result of SQL statement in Query
object.
> SQL statement is :
> "SELECT count(*) FROM pub.trade_acct"
>
> the result should be an integer in to a one record and one field, right. I
> tried to access with :
> AnsiString x = DM_MaintChqType->Q_tradeacct->Fields->Fields[0]->AsString;
>
> but it's returning an exception error message that said "list is out of
> bound".
>
> How can I access the result ?
>
> Thank you in advance.
>
>
>
>
>
>
Technical Details
Message-ID: <3aa65717$1_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!38.166.43.102
References: <3aa5a085_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,e643ec471dc993e1
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-03-07 07:56:08 PST
From: "Neo" <klink_stalag13@nospam_yahoo.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3aa5a085_1@dnews>
Subject: Re: Accessing Query result ("SELECT count(*) ...")
Date: Wed, 7 Mar 2001 10:39:45 -0500
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
NNTP-Posting-Host: 38.166.43.102
Message-ID: <3aa65717$1_1@dnews>
X-Trace: 7 Mar 2001 07:43:19 -0800, 38.166.43.102
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!38.166.43.102