Results 1 to 6 of 6

Thread: [RESOLVED] annoying problem

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,364

    Resolved [RESOLVED] annoying problem

    VB Code:
    1. Public Sub testy()
    2.     On Error GoTo ErrorHandler
    3.    
    4. winsock1.senddata <blah>
    5. blah blah code here
    6.    
    7. ErrorHandler:
    8.     MsgBox "Program has detected an error, id: " & Err & ", " & Error
    9. End Sub

    but that keeps giving a msgbox with id 0 even when there is no error

  2. #2

  3. #3
    Frenzied Member thegreatone's Avatar
    Join Date
    Aug 2003
    Location
    Oslo, Norway. Mhz:4800 x12
    Posts
    1,333

    Re: annoying problem

    Common mistake, which i think we are all guilty of at one time or another
    Zeegnahtuer?

  4. #4

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,364

    Re: annoying problem

    thanks guys!!

  6. #6
    Frenzied Member cssriraman's Avatar
    Join Date
    Jun 2005
    Posts
    1,465

    Re: annoying problem

    Quote Originally Posted by thegreatone
    Common mistake, which i think we are all guilty of at one time or another
    We can use toolslike MZ Tools to insertr On error statement to avoid these type of mistakes. It automatically inserts the Exit sub etc.
    CS

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