Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On error or Try
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01543745
Message ID:
01543760
Views:
52
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
Previous
Reply
Map
View

Click here to load this message in the networking platform