Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine which line causes error in script
Message
From
07/12/2003 07:49:33
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Determine which line causes error in script
Miscellaneous
Thread ID:
00856676
Message ID:
00856676
Views:
70
I need to determine which line causes error in script
when script is running in VFP runtime.

I can use

EXECSCRIPT(filetostr('myproc.prg'))

or

COMPILE myproc
myproc()


Unfortunately, VFP does not return the line number which causes error!

It retuns only the error message and EXESCRIPT() or myproc() line number.

Randy Pearson Codeblock returns correct line. However, I have
many SCAN iterations in my scripts and codeblock is too slow in this case.

Any idea ?
Andrus
Next
Reply
Map
View

Click here to load this message in the networking platform