Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error work around needed
Message
From
19/02/2013 11:26:21
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
19/02/2013 10:22:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01566373
Message ID:
01566376
Views:
68
Likes (1)
>With the help of the folks on the UT I have small web accessing app that collects text and saves it in a table. I am getting errors on some sites. Using code, is there a way to detect the error, skip the error message popup, and advance to the next URL? FWIW the most common error messages is 'member body does not evaluate to an object.', But I want to skip all the URLs that produce any kind of error.
>
>I have tried Keyboard "{I}" to click the Ignore button on the error message, but it tends to cascade through all the URLs I want to access. Also tried on error skip with no success.
>
>Will try/catch get the job done? Other successful ideas welcome :-)

Before accessing .body, make a little loop checking for existence of the document - with a little sleep(50) to wait for it - and a max of, say, 10 seconds, so the slower pages have the time to load. If you're going for .body or any other element of the page's DOM before it finishes loading, you'll keep getting those most common messages.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform