Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question about LINENO()
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00266575
Message ID:
00266584
Views:
22
>Hi, gang...
>
>A question...
>
>Is it possible to compile without debugging information on, yet be able to access the line # for a run-time error?
>
>Our app writes out any run-time errors to a log file, and that information includes the line # that caused the error. I'd like to be able to recompile w/out debug info, but then any runtime errors return a line # of 0 when the software calls the LINENO() function.
>
>I don't need to write out the actual line of code, just the line #, without having to include all the debug info in the EXE (which really bloats the size of the EXE)....any ideas?
>
>TIA,
Hi Kevin,

You need to include the debug information in order to get the line number that tripped the error handler. AFAIK, there's no way around this.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform