Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE Error
Message
From
09/04/2012 16:00:16
 
 
To
09/04/2012 15:07:40
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01540706
Message ID:
01540729
Views:
32
>>I've been picking a this code off and on for a few days. The line where the error occurs is commented. If I press ignore, it cycles once and stops in the same place. URLs are being opened okay.
>>So, I am missing something.
>
>Sergey told you how to fix the immediate problem, but I see another:
>
>>
>
>>		FOR EACH loLink IN lox.DOCUMENT.Links  && Go to each referenced sub page - Error occurs here [OLE ERROR code 0x80004005 unspecified error]
>>		lcOutPut = [ ] + loLink.Href + [ ] + loLink.innerText
>>		lox.NAVIGATE(lcOutput)
>>
>
>In the third line, you are leaving the document through whose links you are going. You may be better off with stuffing all links into an array or collection, then navigating through each. And if you do that recursively (by making the array or collection local, and calling this same method for each member), you'd have to limit yourself to some depth, or else you'd try to parse most of the internet in one go, or run out of memory before even scratching the surface.

Thank you Dragon - Yes, I found that right away and removed the offending bit of code. As usual, write once - debug until it works. :-)
I ain't skeert of nuttin eh?
Yikes! What was that?
Previous
Reply
Map
View

Click here to load this message in the networking platform