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:
01543753
Views:
44
Thank you Naomi

I am going to try it.

Moises



>>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
>
>something like
>
>lnAttempts = 0
>do while not llCreated and lnAttempts < 10
>   
>     try
>        loIE = ...
>        llCreated = .t.
>    catch to loError
>       lnAttempts = m.lnAttempts + 1
>   endtry
>enddo
Previous
Reply
Map
View

Click here to load this message in the networking platform