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