Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ever have LineNo() return a zero?
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00540090
Message ID:
00540095
Views:
14
This message has been marked as the solution to the initial question of the thread.
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.com
ICQ #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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform