Results 1 to 3 of 3

Thread: Error Handling

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2000
    Location
    UK, Bedfordshire
    Posts
    49

    Unhappy

    Hi,
    could some one please tell me how to write error handling procedures more efficiently? rather then putting an error handling statement within each function or sub like (each error handling code will be the same):

    Public Sub test()
    on error goto hell
    Some code goes here
    exit sub

    :hell
    error handling code
    End Sub

    Public Sub testa()
    on error goto hell
    Some code goes here
    exit sub

    :hell
    error handling code
    End Sub

    thanx
    Thanx, for your reply(s)

    Zhang Tian Hao
    Visual Studio Enterprise 6.0 SP 4
    [email protected]

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    I think it's not possible with vb6. Maybe it's possible with vb7.
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 2000
    Location
    UK, Bedfordshire
    Posts
    49
    no this is a sign os a "bad" programming language... i'm writing an app with lots of calls to the api so error handling will become tedious...

    well i guess i'll have to wait for VB7
    Thanx, for your reply(s)

    Zhang Tian Hao
    Visual Studio Enterprise 6.0 SP 4
    [email protected]

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