>>Try PROGRAM() or ASTACKINFO()
>>
>
>Hi Lutz,
>
>Getting back to this thread. You recommended to use ASTACKINFO(). Now I am trying to implement it.
>But I only want to get the last routine that was called before ASTACKINFO(). Does it mean that I would need to access the array element equal to the total number of elements? For example:
>
>ASTACKINFO(aStackArray)
>? aStackArray[alen(aStackArray,1),1)
>? aStackArray[alen(aStackArray,1),2)
>
>
>Am I on the right track?
>
>TIA
Hi Dimitry,
In general, yes.
Depending on your style of programming this approach - but I guess you need the caller of your access_ method, so
ASTACKINFO(aStackArray)
? aStackArray[alen(aStackArray,1)-1,1)
? aStackArray[alen(aStackArray,1)-1,2)
or, for the lazy ones like me
LOCAL;
lnLevel
lnLevel = ASTACKINFO(aStackArray)-1
? aStackArray[m.lnLevel,1)
? aStackArray[m.lnLevel,2)
HTH
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]