Forum Discussion
Dmitry_Nikolaev
15 years agoStaff
Hello Steve,
There's no way to do this. I suggest that you add a global variable to a script unit and assign the file name of the current unit to the variable. After that, you can use this variable in the unit as you want. Here's an example:
There's no way to do this. I suggest that you add a global variable to a script unit and assign the file name of the current unit to the variable. After that, you can use this variable in the unit as you want. Here's an example:
var ScriptName = "test_columns.sj";
function Main()
{
Log.Message("The name of the currently running script file is '" + ScriptName + "'");
...
}
Related Content
- 2 years ago
- 2 years ago
Recent Discussions
- 12 hours ago