Article View: borland.public.cppbuilder.database.ado
Article #327Re: TADOQuery problem
From: Viatcheslav V. Vassiliev
Date: Sat, 05 Aug 2006 07:44
Date: Sat, 05 Aug 2006 07:44
42 lines
2244 bytes
2244 bytes
If you use C++ Builder 5, install ADO update.
Correct way to traverse dataset is:
CountQuery->First();
while (!CountQuery->Eof)
{
...
CountQuery->Next();
}
//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)
"Cenk" <cenk1536@yahoo.com> �������/�������� � �������� ���������:
news:44d37887@newsgroups.borland.com...
> for (int i = 0;i<count ;i++)
> {
>
> v_bid.push_back(CountQuery->FieldByName ("bid")->AsFloat);
>
> v_time.push_back(CountQuery->FieldByName ("fTime")->AsDateTime);
>
> CountQuery->Next ();
> }
>
> start = v_time.at(0);
>
> end = v_time.at(count-1);
>
>
> CountQuery->Close(); -----> EOleException with message 'BOF or EOF
> is truth or the first registry was deleted. The actual operation needs a
> actual registry".
>
Technical Details
Message-ID:
<44d44c6e@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44d36e64@newsgroups.borland.com> <44d37209@newsgroups.borland.com> <44d373f4@newsgroups.borland.com> <44d37887@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,8c96c50763dd0dab X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <44d36e64@newsgroups.borland.com> <44d37209@newsgroups.borland.com> <44d373f4@newsgroups.borland.com> <44d37887@newsgroups.borland.com> Subject: Re: TADOQuery problem Date: Sat, 5 Aug 2006 11:44:43 +0400 Lines: 44 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Response X-Antivirus: avast! (VPS 0631-3, 04.08.2006), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 85.93.138.132 Message-ID: <44d44c6e@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1154763886 85.93.138.132 (5 Aug 2006 00:44:46 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail