CallersSymbol Function
Syntax
CallersSymbol[(Depth)]
Group
Description
Returns the caller's symbol as a text string.
The text format is project.module.procedure.
| Parameters | Description |
|---|---|
| Depth | Indicates how deep into the stack to get the caller's line. If Depth = -1, the current line is returned. If Depth = 0, the calling subroutine current line is returned, and so on. If Depth is greater than or equal to the call stack depth, a null string is returned. If this value is omitted, the depth is 0. |
Sub Main A End SubSub A Debug.Print CallersSymbol '"..Main" End Sub