Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ERROR PATH
Message
 
 
To
27/08/2009 23:41:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01421329
Message ID:
01421374
Views:
35
>thanks this is something naomi had referred me too as well. i was trying to trim down data that it was supplying actually - more information than i need. So i have found a happy medium editing that program down and adding instead of astackinfo(), rather sys16() so:
>
>STORE 1 TO gnX
>DO WHILE LEN(SYS(16,gnX)) != 0
> ? SYS(16,gnX)
> STORE gnX+1 TO gnX
>ENDDO
>
>***then to find the error line.
>
>PARAMETERS gnBadLine
>? 'Error occurred at line: ' + ALLTRIM(STR(gnBadLine))
>
>
>k

You can get line no with LINENO() function. You would need to build your application with Debug option checked.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform