>ok thats it for the program name, but how cn i do for the line number for each program ?
Francis,
It's too bad that lineno() doesn't take an argument for specifying the stack depth. Unfortunately, it only allows you to determine the line # at the current depth. But then, line numbers are not a very satisfactory way of reporting errors anyhow. I prefer to give useful context-specific messages for common errors, so no one has to refer to the source code to make sense out of the error messages. For all of the unanticipated error cases, I want a generic error handler that includes diagnostic, tracing, logging, and debugging options. Check out my error handling classes and demo application, which you can download from the ErrHandler forum at
http://www.ideaxchg.com/ix07/er/_sys/toccontu.htm.
Mike