returning code line numbers

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a method that returns the line currently being executed? I am kicking off an email to alert me if an error occurs and I'd like to include the line number...thanks
 
Chuck C said:
Is there a method that returns the line currently being executed? I
am kicking off an email to alert me if an error occurs and I'd like
to include the line number...thanks

Only if you explicitly number the lines, which isn't much done any more.
But if you do number them, then I believe the Erl() function will return
the number of the failing line.
 
Dirk Goldgar said:
Only if you explicitly number the lines, which isn't much done any more.
But if you do number them, then I believe the Erl() function will return
the number of the failing line.

Just to add onto Dirk's post.

If you want to add line numbers, take a look at MZ Tools
http://www.mztools.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top