Results 1 to 2 of 2

Thread: The linenumbers of the code

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2001
    Location
    Belgium
    Posts
    3

    Exclamation The linenumbers of the code

    Hi Guys,

    Is there any way to see on what linenumber your program got an error ?

    For example :

    Private Sub Form_Load()
    On Error GoTo errorhandler


    Msgbox Error"

    Exit Sub

    errorhandler:
    ---> i can show the linenumber where it crashed here (line 5)
    end sub

    Thnx

  2. #2
    gaffa
    Guest
    You need to actuay insert the line numbers on each line - that way the Err object will have a vlaid line number in it.

    Do a search throughthe recent posts (last week or so) - somebody wrote a little line numbering utility...

    - gaffa

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