Dennis
Fri Jul 18 19:17:41 CDT 2008
That's what I used. Thanks.
I've got the code working. The only problem thus far is one web site
that didn't want to work. Don't know whether it's on the open or send.
Had to disconnect from the Internet to get the code to let go. Is there
a way to add a timeout to the xmlhttp object?
"Dan Freeman" <spam@microsoft.com> wrote in message
news:%23vYdeHS6IHA.2260@TK2MSFTNGP03.phx.gbl...
> Thanks!
>
> Gianni Turri wrote:
>> Sorry Dan,
>>
>> I must correct you:
>>
>> lcError = On("Error")
>> llError = .f.
>> On Error llError = .t.
>> YourCommandHere
>> On Error &lcError
>> If Not llError
>> * cool beans
>> Else
>> * nope
>> Endif
>>
>> Error was on line 3.
>>
>> --
>> Gianni
>>
>> On Fri, 18 Jul 2008 08:35:08 -0700, "Dan Freeman"
>> <spam@microsoft.com> wrote:
>>
>>> This is basically the same thing, and goes back to Foxpro/DOS:
>>>
>>> lcError = On("Error")
>>> llError = .f.
>>> On Error *
>>> YourCommandHere
>>> On Error &lcError
>>> If Not llError
>>> * cool beans
>>> Else
>>> * nope
>>> Endif
>>>
>>> Dan
>>>
>>> Dennis Allen wrote:
>>>> Thanks for the reply.
>>>>
>>>> TRY/CATCH? Is there a way to use those commands in VFP6? If not,
>>>> is there another way to head off the OLE error?
>>>>
>>>> "Rolf Lystad" <rolf@invalid.invalid> wrote in message
>>>> news:%23fGSmGF6IHA.616@TK2MSFTNGP02.phx.gbl...
>>>>>
>>>>> local xmlHTTP, cServer
>>>>> cServer = "
http://www.microsoft.com"
>>>>> xmlhttp = create("Microsoft.XMLHTTP")
>>>>> xmlhttp.Open("GET", cServer, .f. )
>>>>> TRY
>>>>> xmlhttp.send()
>>>>> ? "OK"
>>>>> CATCH
>>>>> ? "Not OK"
>>>>> ENDTRY
>
>