|
-
Oct 24th, 2001, 03:23 AM
#1
Thread Starter
New Member
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
-
Oct 24th, 2001, 03:35 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|