Difference between revisions of "PROCNAME()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to return name of currently executing procedure | Function to return name of currently executing procedure | ||
− | |||
==Syntax== | ==Syntax== | ||
PROCNAME([<expN>]) | PROCNAME([<expN>]) | ||
− | |||
==See Also== | ==See Also== | ||
− | [[ | + | [[ASTACKTRACE()]], [[DO]], [[DOLEVEL()]], [[PATH()]], [[PROCLIBS()]], [[PROCLINE()]], [[SYS()]] |
− | + | ||
==Description== | ==Description== | ||
− | The PROCNAME() function returns the name of the currently executing program or procedure. | + | The PROCNAME() function returns the name of the currently executing program or procedure. The name is returned as a character string in upper case without path or file extension. |
− | <expN> | + | ===<expN>=== |
Specifying the optional <expN> causes PROCNAME() to return the name of the procedure or program at the <expN> level. If there is no program or procedure at the specified level, an empty string is returned. The name of the master or starting program is returned if <expN> is 0 or 1. | Specifying the optional <expN> causes PROCNAME() to return the name of the procedure or program at the <expN> level. If there is no program or procedure at the specified level, an empty string is returned. The name of the master or starting program is returned if <expN> is 0 or 1. | ||
− | |||
==Example== | ==Example== | ||
Line 24: | Line 20: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] |
Latest revision as of 08:34, 30 May 2013
Purpose
Function to return name of currently executing procedure
Syntax
PROCNAME([<expN>])
See Also
ASTACKTRACE(), DO, DOLEVEL(), PATH(), PROCLIBS(), PROCLINE(), SYS()
Description
The PROCNAME() function returns the name of the currently executing program or procedure. The name is returned as a character string in upper case without path or file extension.
<expN>
Specifying the optional <expN> causes PROCNAME() to return the name of the procedure or program at the <expN> level. If there is no program or procedure at the specified level, an empty string is returned. The name of the master or starting program is returned if <expN> is 0 or 1.
Example
m_procname = procname() dialog message "The error occurred in the procedure &m_procname."