Is there a way to know what datasession is active for each line #/program level in the call stack?
Meaning, let's say I have the following call stack:
CALL STACK
///////////////////////////////////////////////
6 MyGlobalErrorObject.HANDLE_ERROR
5 MyGlobalErrorObject.ERROR
4 SomeForm.Button.ERROR
3 SomeForm.Button.CLICK
2 MyApp.ReadEvents
1 MAIN.PRG
In the error handler HANDLE_ERROR method (program level 6 in this example), is there any way to know what datasession is/was active when the error condition in program level 3 occurred?
What I would like to do in the error handler is switch to the datasession the error occurred in and gather state on open tables/views/record pointers etc...
Thanks.
William Fields
MCSD - Microsoft Visual FoxPro
MCP - Win2k Pro
US Bankruptcy Court
Phoenix, AZ