Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General » View Thread |
Messages 1 to 3 of 3 total |
Bookmarks and DBISAM |
Sun, Apr 17 2011 6:19 PM | Permanent 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 PM | Permanent Link |
Jan Ferguson Data Software Solutions, Inc. 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 PM | Permanent 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... |
This web page was last updated on Sunday, May 19, 2024 at 08:46 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |