Re: Bookmarks

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Joanne (JoBobBuss_at_sbcglobal.net)
Date: 09/27/04


Date: Mon, 27 Sep 2004 14:57:33 GMT

Malc
Yes, I tried using breakpoint and f8 to watch what is happening. As I
said, when it reaches 'do while not oRst.eof' and I hit f8, on these 4
files only, it drops out of the loop and refuses to do the
'setbookmarks' routine.
I tried recreating the 4 docs yesterday, but that did not solve the
problem either. I am at a loss
Joanne
Malcolm Smith wrote:

>In article <emvTA18oEHA.800@TK2MSFTNGP14.phx.gbl>, JoBobBuss@sbcglobal.net
>(Joanne) wrote:
>
>> My error, Malc
>> I failed to replace .item with oDocName.Bookmarks in the second
>> statement.
>>
>> All is corrected and running well now and I'm sure you've helped me
>> make the app more reliable.
>>
>> But, this did not do anything for the 4 files that will not work
>> right, which is how we started this conversation again in the first
>> place.
>>
>> I create a recrodset with only these 4 files but when the routine gets
>> to the 'do while not oRst.EOF' it must be thinking it is at the eof
>> because it drops out of the loop here and skips the entire set of
>> statements to set the bookmarks. And of course sFilename = ""
>> because the routine drops out of the loop before the variable receives
>> a value.
>>
>> If Not oRst Is Nothing Then
>> Do While Not oRst.EOF
>> sFilename = "" & oRst("DocNamePath")
>>
>> Strange since 18 of the 22 docs do as expected. That is what makes me
>> suspicious that these 4 docs are corrupt in some way.
>>
>> As always, thanks a great deal for your time and expertise
>> Joanne
>>
>> Malcolm Smith wrote:
>>
>> >In article <#Ir6xgzoEHA.1176@TK2MSFTNGP12.phx.gbl>,
>> >JoBobBuss@sbcglobal.net (Joanne) wrote:
>> >
>> >> If oDocName.Bookmarks.Exists("FName") = True Then
>> >> oDocName.Bookmarks("Fname").Range.Text = Nz(Me!FName, "")
>> >> End If
>> >> Causes the error
>> >
>> >
>> >Again, which statement causes the error? I can see two here.
>>
>>
>
>
>Can you put a breakpoint at this point and then see what values are placed
>in the variables as you single-step (F8) through the code?
>
>- Malc



Relevant Pages

  • Re: Bookmarks
    ... My error, Malc ... I create a recrodset with only these 4 files but when the routine gets ... to the 'do while not oRst.EOF' it must be thinking it is at the eof ... because the routine drops out of the loop before the variable receives ...
    (microsoft.public.word.vba.general)
  • Re: [RFC] hwbkpt: Hardware breakpoints (was Kwatch)
    ... users cannot just use the struct fields directly. ... Tests show that my CPU does not clear DR_STEP when a data breakpoint is ... * Install the debug register values for just the kernel, ... * Ptrace support: breakpoint trigger routine. ...
    (Linux-Kernel)
  • Re: Speed Speed Speed - Cutting down on wasted cycles
    ... result of my ignorance on how to best utilize VB6 coding techniques. ... So I had two sections within this one routine that were slowing ... I tacked first the Recordset issue first. ... Now I'm down to a loop that has to perform extensive date manipulation ...
    (microsoft.public.vb.general.discussion)
  • Re: [Patch 00/11] Hardware Breakpoint interfaces
    ... legacy ptrace interface. ... to set up a breakpoint a debugger needs to call ptrace ... be best to keep the existing registers in the thread structure. ... It's just a tiny loop. ...
    (Linux-Kernel)
  • Re: Using ZLib
    ... >> If only it were so easy - I tried using a repeat..until loop, ... >when Count>bytes left, inflate() sets FZRec.avail_out to 0, otherwise ... the main exit condition, and suggest that you check your Delphi CD. ... routine to ensure that they are asking for /exactly/ the decompressed ...
    (comp.lang.pascal.delphi.misc)