🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Error in code

#2773
From: Blazek Jaroslav
Date: Thu, 03 Apr 2003 06:10
25 lines
1657 bytes
Hi,

Borland ADO Update ... 

Bc. Jaroslav Blazek
Access-IT Ceska Lipa
Jaroslav.Blazek@access-it.cz
http://www.access-it.cz


"Ernesto Rodriguez" <ernesto@solmeliacuba.net> wrote in message news:<3e724f67@newsgroups.borland.com>...
> I'm using this code to open an ADOQuery repeatedly, passing a StrQuery. But,
> when the dataset is empty and I try to open again the ADOQuery using the
> code bellow, I get this error, exactly in the 'ADOQuery->Close()' code :
> 
> exception class.... 'Either BOF or EOF is true, or the current record has
> been deleted. Requested operation requieres a current record'
> 
> ADOQuery->Close();
> ADOQuery->SQL->Clear();
> ADOQuery->SQL->Add(StrQuery);
> ADOQuery->Prepared = true;
> ADOQuery->Open();
> 
> What's wrong? What can I do to solve this problem?
Technical Details
Message-ID: <159ea77c.0304022210.6fabd580@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
References: <3e724f67@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,47e863e2d0fd4ee2
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-04-02 22:10:15 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: Jaroslav.Blazek@access-it.cz (Blazek Jaroslav)
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: Error in code
Date: 2 Apr 2003 22:10:14 -0800
Organization: http://groups.google.com/
Lines: 25
Message-ID: <159ea77c.0304022210.6fabd580@posting.google.com>
References: <3e724f67@newsgroups.borland.com>
NNTP-Posting-Host: 213.180.32.14
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1049350214 5165 127.0.0.1 (3 Apr 2003 06:10:14 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 3 Apr 2003 06:10:14 GMT