Results 1 to 3 of 3

Thread: Error Handeling

  1. #1

    Thread Starter
    Addicted Member Stick's Avatar
    Join Date
    Aug 1999
    Location
    Iowa
    Posts
    152

    Error Handeling

    Hey in vb 6.0 you could go.


    on error goto ErrHand



    ErrHand: Msgbox "Error has occured " & Error

    this gave the message box and had the actual error in it also does anyone know if this can be done in vb.net ?

    Any help would be great
    Thanks
    Sean

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    You should learn the Try..Catch method used in .NET (although the old On Error method should still work)

    VB Code:
    1. Try
    2.    'code to test here
    3. Catch ex As Exception
    4.    Msgbox("Error has occured " & ex.Message)
    5. End Try

  3. #3

    Thread Starter
    Addicted Member Stick's Avatar
    Join Date
    Aug 1999
    Location
    Iowa
    Posts
    152

    thanks

    thanks

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