>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