Results 1 to 2 of 2

Thread: RD.How can I trap a request timed out error?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Posts
    70

    Exclamation

    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.
    Kiziltan Yuceil
    Freelance Web/VB/VBA Programmer
    "It's not what you know it's to whom you consult and with whom you collaborate"

  2. #2
    Junior Member
    Join Date
    Jul 1999
    Posts
    16

    Wink I Had the same problem

    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
    ShadowWalker
    webmaster of shadowkeep.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width