Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error stack
Message
 
To
02/01/2001 13:48:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00458540
Message ID:
00458723
Views:
13
>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
Montage

"Free at last..."
Previous
Reply
Map
View

Click here to load this message in the networking platform