returning code line numbers

C

Chuck C

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
 
D

Dirk Goldgar

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.
 
D

Douglas J. Steele

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