Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lineno() function
Message
From
23/04/2012 19:34:08
 
 
To
23/04/2012 19:15:50
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01542385
Message ID:
01542388
Views:
53
>Hi all
>I have a error handler routine witch is called with parameters below in order to treat error an then write it into an TXT file. In development everything runs good but in runtime the lineno() always return 0 (zero). What I'm doing wrong?
>
>On Error Do trata_erros With error( ), Message( ), Message(), Program ( ), Lineno( )

Have you tried LINENO( 1 ) instead of LINENO( ) ?

A guess, but in your Project...Project Info, do you have Debug info unchecked, or Encrypted checked (see attached image)?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform