Re: ADO Bookmark status



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"


.



Relevant Pages

  • Re: ADO Bookmark status
    ... The current bookmark ultimately comes from ADO using my code something like ... variant bookmark to determine if it's okay. ... Does this help clarify? ... This email account is my spam trap so I ...
    (microsoft.public.data.ado)
  • Re: ADO Bookmark status
    ... Neil B wrote: ... I can't think of any situation where the bookmark would no longer ... Since this doesn't generate an error condition I need to interrogate ... This email account is my spam trap so I ...
    (microsoft.public.data.ado)
  • Re: Adding cross-references to figure _numbers_?
    ... > "Suzanne S. Barnhill" kirjoitti: ... The bookmark that is highlighted is the bookmark for your figure ... >> Microsoft MVP ...
    (microsoft.public.word.docmanagement)
  • Re: pageref error - word 2000
    ... Microsoft MVP ... > "PAGEREF bookmark", locating the bookmark at the end of the section. ... > updated of manual form, this one is updated correctly, but this does ... > avoid and to control the number of times pagination. ...
    (microsoft.public.word.numbering)
  • Re: how to create text "variables"
    ... You could bookmark the text and use cross-references to the text of the ... Microsoft MVP (Word) ... "When completing the load, please send the results to for review ...
    (microsoft.public.word.docmanagement)