Page 1 of 1

how to get bookmark on TOraTable

Posted: Wed 02 Mar 2005 09:37
by Wojtek
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

Posted: Wed 02 Mar 2005 14:58
by Alex
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;