Re: EOAsyncFetchNonBlocking Question



Paul,

This is the solution I've found while googling, it seems to be a known bug.
Just place this code inside the OnAfterScroll event of TADOQuery.

if DataSet.Bof or DataSet.Eof then
begin
DataSet.DisableControls ;
with TCustomADODataSet ( DataSet ) do
begin
if Bof then
Recordset.MoveFirst
else
if Eof then
Recordset.MoveLast ;
CursorPosChanged ;
Resync ( [ ] ) ;
end ;
DataSet.EnableControls ;
end ;


Randy.

"Paul Scott" <paul.scott@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:op.ua6zq0mjjpqj2l@xxxxxxxxxxxxxxxxxxxxxxxx
Randy,

On Thu, 15 May 2008 08:39:27 +0100, Randy Adanza <radanza@xxxxxxxxxxx>
wrote:
Then I found out that by setting TADOQuery.ExecuteOption to
EOAsyncFetchNonBlocking speeds up things quite nicely. However, I found
out that it seems to bypass the First and
Last record, I did however found a fix for that.

Would you care to share your solution?

--
Paul Scott
Information Management Systems
Macclesfield, UK.


.



Relevant Pages

  • Re: Repositioning a field corrupts DBGrid !!!
    ... because both TAdoQuery and TAdoStoredProc ... are decendants of TAdoCustomDataSet. ... The bug surfaces itself quite randomly. ...
    (borland.public.delphi.database.ado)
  • Re: dpkg EOF mozilla error after dselect install
    ... Nick Lidakis wrote: ... Googling only works if something's been around long enough for them ... its bug list. ... Bingo, lots of bugs already filed about this, and the ...
    (Debian-User)
  • static and global variables in XP
    ... I have Windows Studio V. 6.0 but it won't show static and global variables. ... Googling in the groups I saw that there is a bug in XP and the usual remedy ...
    (microsoft.public.vc.debugger)
  • Re: PCI: BIOS BUG #81[00000000] found
    ... Manuel Arostegui Ramirez wrote: ... > Googling, I can see that this has happened to others ... ... > and it only started after FC6 kernel 2.6.20.2944. ... > It would be good if someone could explain what the actual bug is. ...
    (Fedora)
  • Useless SBCL on Win32: memory problem
    ... How can I avoid this bug? ... Is there any patch or something? ... Googling ... reveals nothing. ...
    (comp.lang.lisp)