Re: ADO Bookmark status
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Sat, 24 Mar 2007 09:46:36 -0400
Neil B wrote:
Bob,
I think this is a very simple question.
Really? I guess I'd better get out of the way and let the more intelligent
people take over here.
I get a book mark in a variant using C++ code like below.
Oh! You're the "Neil B" that was posting all the C++ questions here! OK, the
talk about macros made me suspect you were an Office VBA user.
_variant_t bookmark;
bookmark=GetAdoRecordsetPtr()->Bookmark;
Now I want to know if the bookmark is any good. So I would use code
something like this:
if (bookmark==VALID) ........
or
if (IsBookmarkValid(bookmark)) .....
I just can't find what "VALID" should be or what is the right
equivalent method for "IsBookMarkValid()".
Actually, I don't understand what would make a bookmark "invalid" in your
eyes. Are you talking about the possibility that the record may have been
deleted between the time you obtained the bookmark and the time you attempt
to use it?
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
.
- Follow-Ups:
- Re: ADO Bookmark status
- From: Neil B
- 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
|
|