BookmarkValid does not work!

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Ludek

BookmarkValid does not work!

Post by Ludek » Sat 07 May 2005 16:34

Hi, I'm using SDAC 3.50.0.12 and getting trouble with bookmarks - GoToBookmarks fails although BookmarkValid returns "true"

following code:

b := MST.Getbookmark;
try
MST.Filter := ;
if MST.bookmarkvalid(b) then
MST.gotobookmark(b);
finally
MST.FreeBookmark(b);
end;

if the old record is filtered, the BookmarkValid returns true and then GoToBookmarks raises an exception (Record not found)
how do I make sure, that the followind GoToRecord won't fail? I really don't like

try
GoToBookmark
except
end;

:-(
(using BDE this code worked fine)
Please help! Thx.

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Tue 10 May 2005 11:59

Thank you for information.
We reproduced your problem and fixed it. This fix will be included in the next SDAC build. It will be available in about three weeks.

Post Reply