🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TADODataSet->FieldCount==0

#3256
From: Vassiliev V.V.
Date: Thu, 07 Nov 2002 10:47
54 lines
2890 bytes
>I tried putting in a delay loop (with a Sleep() call in the middle) that
waited for the field count to not be equal to 0, but it runs forever.

Do you have Application->ProcessMessages() in loop?

----------------------------------------------------------------
Regards,
Viatcheslav V. Vassiliev
http://www.oledbdirect.com
The fastest way to access MS SQL Server and MS Jet (MS Access) databases.


"Mike Ruskai" <spamten.knilhtrae@begonedynnaht.net> ???????/???????? ?
???????? ?????????:
news:gunaalqrneguyvaxarg.h56o2w1.pminews@207.105.83.65...
> I'm attempting to make result counting optional in my program, so that the
> initial results of a search are accessible to be examined while the query
> completes in the background (by ADO, not on a separate thread of my app).
>
> The program already lets the user choose a server or client cursor, with a
> cancel box with the latter so long searches can be aborted (even though
ADO
> will block on the Recordset->Cancel() call if the search involves a sorted
> result set).
>
> After the search, I have a routine which goes through the result set and
sets
> field format information, as well as a few OnGetText handlers to display
some
> fields in human-readable format.
>
> With a server cursor, this routine works fine.  With a client cursor, it
does
> nothing, because the reported field count is 0, and it has no fields to
loop
> through.
>
> I tried putting in a delay loop (with a Sleep() call in the middle) that
> waited for the field count to not be equal to 0, but it runs forever.
>
> With a check of the RecordCount property, however, everything works with a
> client cursor.
>
> So, what can I do to get a field count without checking the record count
with
> a client cursor?
>
>
> --
>  - Mike
>
> Remove 'spambegone.net' and reverse to send e-mail.
>
>
Technical Details
Message-ID: <3dca4aca@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!colt.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed1.cidera.com!Cidera!news.uni-x.net!newsgroups.borland.com!not-for-mail
References: <gunaalqrneguyvaxarg.h56o2w1.pminews@207.105.83.65>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,db15d9f63f3ea0ff
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-11-07 03:22:06 PST
From: "Vassiliev V.V." <news@vassilievvv.mtu-net.ru>
Newsgroups: borland.public.cppbuilder.database.ado
References: <gunaalqrneguyvaxarg.h56o2w1.pminews@207.105.83.65>
Subject: Re: TADODataSet->FieldCount==0
Date: Thu, 7 Nov 2002 13:47:41 +0300
Lines: 56
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 212.188.99.108
Message-ID: <3dca4aca@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1036667594 212.188.99.108 (7 Nov 2002 03:13:14 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!colt.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed1.cidera.com!Cidera!news.uni-x.net!newsgroups.borland.com!not-for-mail