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/
 
Back
Top