how to get bookmark on TOraTable

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Wojtek

how to get bookmark on TOraTable

Post by Wojtek » Wed 02 Mar 2005 09:37

Hi,

There's no GetBookmark method on TOraTable. Is it possible to handle
bookmarking with this component?

Now i use Locate method - but it doesn't work good, because although the record is found, the DbGrid is shifted to the located record (it is the first visible at the top of display). I want it to be exactly on the same
position in grid after operations under bookmarking.

Best regards,

Wojtek

Alex
Posts: 655
Joined: Mon 08 Nov 2004 08:39

Post by Alex » Wed 02 Mar 2005 14:58

TOraTable fully supports bookmark feature, You can use Bookmarks as usual e.g.:

Code: Select all

 var
  SavePlace: TBookmark;
 begin
  SavePlace :=  OraTable1.GetBookmark;
  . . .
  OraTable1.GotoBookmark (SavePlace);
  . . .
  OraTable1.FreeBookmark(SavePlace);
 end;

Post Reply