Purpose |
Return the name of the current Sub/Function/Method/Property. |
Syntax |
f$ = FUNCNAME$ |
Remarks |
FUNCNAME$ returns the name of the procedure in which
it is located. If an
FUNCNAME$ can be useful as a debugging tool, or in situations where an error handler in a procedure passes error information on to a "central" procedure for logging and handling. FUNCNAME$ does not require #TOOLS ON. |
See also |
#TOOLS, CALLSTK, CALLSTK$, CALLSTKCOUNT, FILENAME$, FUNCTION, METHOD, PROFILE, PROPERTY, SUB, TRACE |
Example |
SUB SecretEncryptionSub ALIAS "MySub" (sData$) x$ = FUNCNAME$ ' Returns "MySub" END SUB ... SUB SecretDecryptionSub (sData$) x$ = FUNCNAME$ ' Returns "SECRETDECRYPTIONSUB" END SUB |