Subject | Re: How to use bookmarks like tTable and tQuery? |
---|---|
Author | Svein Erling Tysvær |
Post date | 2005-12-02T07:52:24Z |
--- In IBObjects@yahoogroups.com, Andrei Luís wrote:
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
> Hi,Don't worry about your English, Andrei, it's fine.
>
> 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
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