🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TADOQuery and eoASyncFetch problem

#2013
From: Viatcheslav V. Vassiliev
Date: Thu, 11 Dec 2003 11:59
60 lines
3205 bytes
That is difficult to say why it happens but you may try to install
BetterADODataSet from http://web.orbitel.bg/vassil/. It has no BCB version
but I do not think there will be problems installing it.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi + ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Vic" <victor@espainformatica.com> �������/�������� � �������� ���������:
news:3fd82a7b@newsgroups.borland.com...
> I try it, but doesn't work. It happens the same problem.
> This is what I do
>
> void __fastcall TForm1::ADOQuery1FetchComplete(TCustomADODataSet *DataSet,
>       const Error *Error, TEventStatus &EventStatus)
> {
>    PostMessage(Handle, WM_MYMESSAGE, 0, 0);
> }
>
> void __fastcall TForm1::OnMyMessage(TMessage &Message)
> {
>    ListView1->Items->BeginUpdate();
>    ListView1->Items->Clear();
>    ADOQuery1->First();
>    while (!ADOQuery1->Eof )
>    {
>       TListItem *it = ListView1->Items->Add();
>       it->Caption = ADOQuery1->FieldByName("TEXTO1")->Value;
>       it->SubItems->Add(ADOQuery1->FieldByName("TEXTO2")->Value);
>       ADOQuery1->Next();
>    }
>    ListView1->Items->EndUpdate();
>    Label1->Caption = "In Dataset " + AnsiString(ADOQuery1->RecordCount) +
",
> in List " + AnsiString(ListView1->Items->Count);
> }
>
> in dataset there are 5000 records, but in listview there are 4999
>
>
> "Viatcheslav V. Vassiliev" <support@oledbdirect.com> escribi� en el
mensaje
> news:3fd80f4e@newsgroups.borland.com...
> > Try the next: from ADOQuery1FetchComplete() post a message to form:
> > PostMessage(Handle, WM_MYMESSAGE, 0, 0), then create message handler and
> > fill your list box from this handler.
> >
> > //------------------------------------------
> > Regards,
> > Vassiliev V. V.
> > http://www.managed-vcl.com - using .Net objects in Delphi + ADO.Net
> > http://www.oledbdirect.com - The fastest way to access MS SQL Server,
> > MS Jet (Access) and Interbase (through OLEDB)
> >
>
>
>
Technical Details
Message-ID: <3fd85c21$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fd76a28@newsgroups.borland.com> <3fd80f4e@newsgroups.borland.com> <3fd82a7b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,361a11b4c91b34f
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-12-11 04:09:22 PST
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3fd76a28@newsgroups.borland.com> <3fd80f4e@newsgroups.borland.com> <3fd82a7b@newsgroups.borland.com>
Subject: Re: TADOQuery and eoASyncFetch problem
Date: Thu, 11 Dec 2003 14:59:23 +0300
Lines: 62
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 213.234.218.42
Message-ID: <3fd85c21$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1071143969 213.234.218.42 (11 Dec 2003 03:59:29 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail