A bookmark is actually just a offset to the n-th record.
if you have 1 recordset, take a bookmark and use that on a other (same size record) recordset, you'll end up on the same n-th record.
so it's valid as long as dataset.BookmarkValid(Book
as EddieShipman says ... use the primary key
Main Topics
Browse All Topics





by: EddieShipmanPosted on 2009-05-14 at 15:06:38ID: 24390400
Compiled from two posts on the CodeGear forums:
You can not retain or reuse TBookMarks once a TDataSet has been closed and reopened. A TBookmark is a reference
to a record pointer not the data contained within the record. TBookmark is not guaranteed to be valid after the
dataset is closed in any case (IBX, BDE or other dataset). It is documented this way. The only way to do
this is reliably is to store off a key value that you can re lookup the record in the new result set.