<< nelsonroot core pause >>

nfilename


Returns the name of the currently executing file.


Syntax


R = nfilename()
R = nfilename('fullpath')
R = nfilename('fullpathext')

Output argument


R

a string: the path of current function

Description


R = nfilename() returns the name of the currently executing file.

nfilename() called from outside an nlf file returns an empty string.

With the input argument 'fullpathext', the string includes the directory part of the macro filename, and the filename extension.

With the input argument 'fullpath', the string includes the directory part of the macro filename, but not the extension.

See also


nargin, nargout.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< nelsonroot core pause >>