Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On error-lineno()
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
On error-lineno()
Miscellaneous
Thread ID:
00227975
Message ID:
00227975
Views:
62
I am trying to catch errors using
on error do catcherr where catcherr.prg contains:
"str(ERROR( ))+MESSAGE( )+str(LINENO( ))+pROGRAM( )"

but the lineno() reports back the lineno of catcherr, not where the error actually happens!
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Next
Reply
Map
View

Click here to load this message in the networking platform