Does this work if Debug Info is not included in an application?
P.S. I missed this originally. How about adding the command or key concept you are explaining in the subject line?
>>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.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao