Subject Re: [IBO] Re: How to use bookmarks like tTable and tQuery?
Author Andrei Luís
Thanks for you answer Set,

But, it didn't works... :-(....

I provided a wrong info. After post, the pointer is at record it was
before .insert, I told that pointer moves to the first record.

So, any idea?

[]
Andrei

2005/12/2, Svein Erling Tysvær <svein.erling.tysvaer@...>:
> --- In IBObjects@yahoogroups.com, Andrei Luís wrote:
> > Hi,
> >
> > How do I "find" the last posted record?
> >
> > Something like that:
> >
> > myIB_Query.Insert;
> > myIB_Query.FieldByName('myField').asString:='1234';
> > myIB_Query.Post;
> >
> > After this, myIB_query.State is dssBrowse. That's OK. But, the
> > pointer isn't at this last posted record, instead of this, it is at
> > the first record.
> >
> > I'm using BufferSynchroFlags = [bsAfterEdit, bsAfterInsert] <- it's
> > OK to do that?
> > If I use BufferSynchroFlags = [], it works properly, and the pointer
> > stay in the las posted record.
> >
> > I'm planning to use bookmarks like I used to do with paradox, but
> > IBO doesn't have GetBookmark and GotoBookmark, and I didn't
> > understand exactly how to use IBO Bookmarks and SelectedBookmarks...
> >
> > Can someone help me?
> >
> > I don't know if I gave a good explanation, my english is a little
> > rusty.
> >
> >
> > []s
> > Andrei
> >
> > W2K + D4 Pro + FB 1.5.2 + IBO 4.5B
>
> Don't worry about your English, Andrei, it's fine.
>
> I think you may be looking for the RefreshAction property. Try setting
> this to raKeepDataPos. Bookmarks of IBO are basically strings, just
> read and set the property directly (I think, I don't use it too often).
>
> HTH,
> Set