Re: ADO Bookmark status
- From: "Stephen Howe" <stephenPOINThoweATtns-globalPOINTcom>
- Date: Sat, 24 Mar 2007 19:36:04 -0000
I think this is a very simple question.
Oh the question is simple, the answer , if there is any at all, might not
be.
I get a book mark in a variant using C++ code like below.
_variant_t bookmark;
bookmark=GetAdoRecordsetPtr()->Bookmark;
Why are doing that?
How do you know that the Recordset supports bookmarks?
Now I want to know if the bookmark is any good. So I would use code
something like this:
No such method is provided. It does not exist.
It will be valid if the Recordset supports bookmarks and you have taken a
previous position that you wish to return to.
It is entirely like the validity of fseek() in C/C++ in text mode - you can
only return to a valid position returned from ftell()
So if pRs->Supports(adBookmark) returns true you can use Bookmarks
And that tends to be
All client sided-cursors
All server sided-cursors except adForwardOnly (obvious really, since the
cursor does not support MovePrevious(), how can you move back?)
Dynamic cursors might be a problem is another user has been and deleted the
record you bookmarked on.
I just can't find what "VALID" should be or what is the right equivalent
method for "IsBookMarkValid()".
Do you know what these are or where I can find them?
They dont exist.
Stephen Howe
.
- Follow-Ups:
- Re: ADO Bookmark status
- From: Bob Barrows [MVP]
- Re: ADO Bookmark status
- References:
- Re: ADO Bookmark status
- From: Bob Barrows [MVP]
- Re: ADO Bookmark status
- Prev by Date: Re: ADO Bookmark status
- Next by Date: Re: ADO Bookmark status
- Previous by thread: Re: ADO Bookmark status
- Next by thread: Re: ADO Bookmark status
- Index(es):
Relevant Pages
|
|