Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine Which Class I'm In
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00949960
Message ID:
00949968
Views:
14
>Any way to determine, in runtime, in a DLL, which class I'm in. Specifically
>I'd like to know this when an error occurs.

I have this as a part of my global Error handler to store the Call Stack info into a memo field in my ErrorLog table:
#DEFINE VFP_CRLF CHR(13) + CHR(10)
local lnStack, lcStack, lnI
lnStack = PROGRAM(-1)
lcStack = []
FOR lnI = lnStack TO 1 STEP -1
	lcStack = lcStack + PROGRAM(lnI) + VFP_CRLF
ENDFOR
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform