Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error work around needed
Message
De
19/02/2013 19:19:23
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
19/02/2013 18:18:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01566373
Message ID:
01566414
Vues:
41
>>>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.
>
>Hvala ti cheese

Нема на чему, кобасица.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform