Article View: borland.public.cppbuilder.database.ado
Article #6045Deleting a recordset at EOF (or an empty recordset)
From: John Cortright
Date: Mon, 27 Nov 2000 17:31
Date: Mon, 27 Nov 2000 17:31
11 lines
1356 bytes
1356 bytes
(crossposted here, more appropriately, from *.vcl.components.using) I imagine many of you have ran into this error before, so... in short, how do you delete a TADOQuery object/pointer that's at EOF? I can use the MoveFirst() method and then delete it, but this is ridiculous as MoveFirst() is VERY expensive in ADO and there is still no way to delete an empty recordset, as it is both BOF/EOF no matter where the cursor is placed. Regards, John
Technical Details
Message-ID:
<8vu5ib$fei1@bornews.inprise.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!209.249.123.233.MISMATCH!xfer10.netnews.com!netnews.com!newspeer1.nac.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,2767bee3dde14365,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2000-11-27 09:29:34 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!209.249.123.233.MISMATCH!xfer10.netnews.com!netnews.com!newspeer1.nac.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail From: "John Cortright" <john.cortright@teralogix.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: Deleting a recordset at EOF (or an empty recordset) Date: Mon, 27 Nov 2000 11:31:46 -0600 Organization: Another Netscape Collabra Server User Lines: 13 Message-ID: <8vu5ib$fei1@bornews.inprise.com> NNTP-Posting-Host: mail.teralogix.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700