Click to See Complete Forum and Search --> : RD.How can I trap a request timed out error?
Reddawn
Aug 4th, 2000, 06:28 AM
I want to trap the "request timed out" error. I checked MSDN, but I couldn't find any help reference for this error..I am using INET.GetChunk method to retrieve some text data from the Internet, however it breaks with this error. "On Error Resume Next" statement does not work either.
ShadowWal
Aug 4th, 2000, 02:42 PM
this is how i got around the timeout:
Sub getlist()
On Error GoTo error_hand
.. ' code here
exit sub
error_hand:
Select Case (Err.Number)
Case 35761
' Here you would put what you want to do when it does time out. i used the statusbar as you see to tell me
' StatusBarAccepted.Panels(2).Text = "Request Timed Out!"
Inet1.Cancel
Case Else
End Select
hope that works for ya
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.