Find Line Number without an error

I’ve got an agent that does a large batch job. I’ve set up a NotesLog as a text file so that I get a report of what was done. I’d like to include the line number on every line of my comments in the log, but I can’t find a way to find the line number with LotusScript unless there is an error. Is there a way to find the line number if there is no error?

Subject: http://dev.kanngard.net/dev/home.nsf/Permalinks/ID_20021021230944.html

Subject: RE: http://dev.kanngard.net/dev/home.nsf/Permalinks/ID_20021021230944.html

Thanks! That seems to work great, but the line numbers aren’t matching the line numbers in designer. Are they supposed to? Or is it counting lines from all functions together? I can’t figure out how it is getting the numbers that it is.

Subject: Re: Line numbers don’t match Designer

Ha. Hadn’t tried that particular option. I suspect you’re right, it’s glomming all the functions together and giving the line position based on that. The Err function used to return line positions that way.

This is probably one of the reasons this is a non-documented function.