Mega Code Archive

 
Categories / Delphi / Examples
 

How to work with Bookmarks

Title: How to work with Bookmarks Question: How to use TBookmark to leave a table in a previous status. Answer: Just use the funtions GetBookmark and GotoBookmark to save a certain position in a table and than return to this position. var SavePlace: TBookmark; PrevValue: Variant; begin with Table1 do begin { get a bookmark so that we can return to the same record } SavePlace := GetBookmark; { change the cursor position } GotoBookmark(SavePlace); FreeBookmark(SavePlace); end; end;