CallersSymbol Function
Syntax
CallersSymbol[(Depth)]
Group
Description
Return the caller's symbol as a text string.
The text format is: "project.module.procedure".
Parameters |
Description |
This integer value indicates how deep into the stack to get the caller's line. If Depth = -1 then return the current line. If Depth = 0 then return the calling subroutine's current line, etc.. If Depth > 0 then return the calling subroutine that (Depth+1) levels up. If Depth is greater than or equal to the call stack depth then a null string is returned. If Depth < -1 then return the calling subroutine -Depth-2 from the topmost level. If Depth is less than or equal to -(the call stack depth)-2 then a null string is returned. If this value is omitted then the depth is 0. |
See Also
Example
Sub Main
A
End Sub
Sub A
Debug.Print CallersSymbol '"..Main"
End Sub