name = mfilename()
name = mfilename('fullpath')
name = mfilename('fullpathext')
| Parameter | Description |
|---|---|
| option | optional string: 'fullpath' returns the path without extension, and 'fullpathext' includes the extension. |
| Parameter | Description |
|---|---|
| name | string with the current script or function name. The result is empty when no file is executing. |
mfilename returns the name of the currently running function or script.
With an option, it can return a path-qualified form supported by Nelson.
name = mfilename()
nameWithPath = mfilename('fullpath')
| Version | Description |
|---|---|
| 2.0.0 | initial version |