Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Bookmarks and EOF
Thu, Nov 16 2006 5:54 PMPermanent Link

Oliver Bock
TDBISAMDataSet.Bookmark does not seem to respect EOF.  ie. this Assert
fails:

end_set := gl.Bookmark;
if gl.EOF then begin
   gl.Bookmark := end_set;
   Assert(gl.EOF);
end;

The Borland docs don't speak to this issue.  I think it's bad behaviour,
but is it a bug?


  Oliver
Fri, Nov 17 2006 11:57 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Oliver,

<< TDBISAMDataSet.Bookmark does not seem to respect EOF.  ie. this Assert
fails:

end_set := gl.Bookmark;
if gl.EOF then begin
   gl.Bookmark := end_set;
   Assert(gl.EOF);
end;

The Borland docs don't speak to this issue.  I think it's bad behaviour, but
is it a bug? >>

No. Navigating to bookmarks does not restore the BOF/EOF flags.  Even if
they did attempt to, there's no guarantee that the flag would still be valid
at that time, so you wouldn't want to rely on such a behavior anyways.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image