Hi!
LineNo() return zero in following cases:
Error happened inside of command specified for ON ERROR, ON SELECTION..., ON KEY LABEL, ON SHUTDOWN and similar commands. Zero line also returned when you compile EXE without debug information. Did you compiled it with dibug information? ;)
HTH.
>In my application, when the Error() method gets called, it is always passed a zero for LineNo(). Has anyone else seen this problem? How the heck do I make it show the actual line number in my code?
>
>The object with my defined Error() message also has a FakeError() method in it that I can use to generate a fake error, and it won't even show the line number. So it's not because I'm calling some odd function or something.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.