Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Bookmarks and DBISAM
Sun, Apr 17 2011 6:19 PMPermanent Link

JonD

I recall (but can not find the reference) that there might
be an issue implementing bookmarks with DBISAM and Delphi XE.

Anyone able to jog my memory as I'm having troubles with returning
to a saved bookmark and I'm not sure if it's my code or the differences
inherent in Delphi XE

Thanks,
  JonD
Sun, Apr 17 2011 9:17 PMPermanent Link

Jan Ferguson

Data Software Solutions, Inc.

Team Elevate Team Elevate

Jon,

Due to the way that strings are handled in Delphi XE, make certain that
you use TBookmark instead of TBookmarkStr. Here is some code from a DXE
coded application.

procedure TfrmMain.PrintCurrentLineupClick(Sender: TObject);
var BM: TBookmark;
begin
//Bookmark the record
BM := dmData.tblLineup.Bookmark;
//Do something else with the records ...
//Return to the bookmarked record
dmData.tblLineup.Bookmark := BM;
end;

HTH...
--
Jan Ferguson [Team Elevate]


Jon Lloyd Duerdoth wrote:

> I recall (but can not find the reference) that there might
> be an issue implementing bookmarks with DBISAM and Delphi XE.
>
> Anyone able to jog my memory as I'm having troubles with returning
> to a saved bookmark and I'm not sure if it's my code or the
> differences inherent in Delphi XE
>
> Thanks,
>    JonD
Sun, Apr 17 2011 9:54 PMPermanent Link

JonD

Jan,

I was using tBookmark not tBookmatkstr but was using
the wrong way to get back.

Thanks for the tip.

JonD

On 2011-04-17 9:17 PM, J. B. Ferguson wrote:
> Jon,
>
> Due to the way that strings are handled in Delphi XE, make certain that
> you use TBookmark instead of TBookmarkStr. Here is some code from a DXE
> coded application.
>
> procedure TfrmMain.PrintCurrentLineupClick(Sender: TObject);
> var BM: TBookmark;
> begin
> //Bookmark the record
> BM := dmData.tblLineup.Bookmark;
> //Do something else with the records ...
> //Return to the bookmarked record
> dmData.tblLineup.Bookmark := BM;
> end;
>
> HTH...
Image