Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error handler
Message
From
25/02/2008 12:03:01
 
 
To
25/02/2008 11:59:52
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
01296102
Message ID:
01296120
Views:
8
>Hi Timothy,
>Try PROGRAM(PROGRAM(-1)-1)
>I write the entire stack to my errorlog so I have code like this:
>
>ProgramLevel = PROGRAM(-1) -1
>      Stack = ''
>      FOR x = m.ProgramLevel TO 1 STEP -1
>         Stack = m.Stack + PROGRAM(m.x) + CRLF
>      ENDFOR
>
>>Hi, I am reviewing my error handler program and I noticed that when I capture the error, in particular, capturing the offending program where the error occurs, I am capturing the error handling prg instead. I do capture the proper line# of the offending prg however.

If you need the whole stack, read up on astackinfo()

HTH

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform