Subject | Re: [IBO] BDE to IBO migration |
---|---|
Author | Thomas Steinmaurer |
Post date | 2002-01-12T15:11:45Z |
> > Another question. I've used in this old BDE application manyGetBookmark,
> > GotoBookmark and FreeBookmark statements to ensure that the lastselected
> > record is positioned again after doing a Close/Open.Excellent! This is exactly what I'm looking for. Thanks!
> >
> > So what is the best way to migrate these Bookmark stuff? Or is there any
> > other solution (probably automatically) to reposition the cursor to last
> > selected
> > record after closing and opening the recordset.
>
> Just make sure the KeyLinks are set and use the Refresh method.
> RefreshAction should be set to raKeepDataPos and IBO will do it
> automatically for you. This works for all buffered datasets including
> TIBOQuery and TIBOTable.
> You will be able to delete lots of code from your apps.Yes, definitely. Currently this migration issue is really fun ;-), as I see
how much coding was necessary to achieve the same as IBO does
this with one method and property :).
lg,
Thomas