🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Still seeing "Either BOF or EOF is true or the current record has been deleted..." - Workaround!

#5589
From: J. R. Antley
Date: Sun, 01 Apr 2001 23:51
46 lines
2453 bytes
Hi NG,

I have gotten and installed BCB ADOExpressUpdate 1, but I still see this
exception on my Windows 2000 Pro machine [which has MDAC 2.6].

What I'm trying to do:

I'm using MSAccess 97 to create this table [okay, this is a pseudo-table to
demonstrate my problem].

My hypothetical table looks like:

Host  Info1  Info2
----- ------ ------
aaaa  dork   1
aaaa  dork   2
aaaa  dork   3
aaaa   fuzz   99

Now I want to find and step through all the records with "aaaa" in my Host
field, which is indexed and the current index in the table.

Since Seek() doesn't work [why oh why isn't such a basic feature of indexed
tables supported?], I use Locate to find the first instance of "aaaa", then
FindNext() until EOF is true or the value of Host is not "aaaa".

When I try the FindNext() from the last record in the table, it should
return FALSE and set EOF to true.  Instead it generates the exception
"Either BOF or EOF is...".

If I use Next() instead of FindNext, no exception is generated, but EOF is
never set.

Finally I tried MoveBy(1) and found that it will not generate the exception,
nor will it set EOF, but it does return 0 when positioned on the last record
in the table.  So I have a workaround, but I'm concerned about how my
application will work on various operating systems with various versions of
MDAC.

Is this consistent with what y'all have seen?

I don't think this will do much to help those of you who are using SQL, but
it might provide some insight as to how it is failing beneath the covers.

Cheers,
JR
Technical Details
Message-ID: <3ac7c929_2@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!news.stealth.net!feed.textport.net!news.bnb-lp.com!dnews!199.174.231.77

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,fa27be1db804e315,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-04-01 17:44:06 PST
From: "J. R. Antley" <jantley@phoenixdsl.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Still seeing "Either BOF or EOF is true or the current record has been deleted..." - Workaround!
Date: Sun, 1 Apr 2001 17:51:33 -0600
Lines: 48
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 199.174.231.77
Message-ID: <3ac7c929_2@dnews>
X-Trace: 1 Apr 2001 17:34:49 -0800, 199.174.231.77
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!news.stealth.net!feed.textport.net!news.bnb-lp.com!dnews!199.174.231.77