Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On error or Try
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01543745
Message ID:
01543760
Vues:
54
This message has been marked as a message which has helped to the initial question of the thread.
>Hi
>
>I am using createobject() inside SCAN / ENDSCAN structure on a table to track objects in mail post website.
>
>It works fine but sometimes createobject return error message and then program stops and I have to execute it again.
>
>How can I use “try” or “on error” commands to test the command below
>and execute it over and over until no errors exist ?
>
>
>loIE = CREATEOBJECT("InternetExplorer.Application")
>
>
>Moises

You might want to insert a delay between "Creates" or test if the object exists
if type('loIE") = 'O'
before running any other code. Also be sure to remove the old version if you are using the same name for each one.
 loIE = .NULL.
 RELEASE loIE
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform