Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine Which Class I'm In
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00949960
Message ID:
00949968
Vues:
15
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform