Subject | How to use bookmarks like tTable and tQuery? |
---|---|
Author | Andrei Luís |
Post date | 2005-12-02T00:04:52Z |
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
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