>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.