Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
101 VFP Things, Part 7
Message
De
15/12/2000 11:25:19
 
 
À
11/12/2000 12:01:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00451655
Message ID:
00453990
Vues:
24
>There is a new function called AStackInfo() that fills an array with info about the entire calling stack. ... 3 and 4 are the Object and the Object source filename (Larry, I think this is another way to get the Instance name of "THIS") ...

Ok, in reviewing, 3 and 4 give the class or form name, not the actual instance. But if the source is available, it will be possible to back track to find this out. For example, in this code:
loObject = CREATEOBJECT('myclass')

DEFINE class Myclass as Custom

	PROCEDURE Init
	ASTACKINFO(aA)
	suspend 
	ENDPROC 
ENDDEFINE
aa[1, 6] equals "loObject = CREATEOBJECT('myclass')". Another use is to serach through the sources of the call stack to see if a READ EVENTS has been issued.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform