Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
101 VFP Things, Part 7
Message
From
15/12/2000 11:25:19
 
 
To
11/12/2000 12:01:56
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00451655
Message ID:
00453990
Views:
23
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform