DIAdem Help

Variable: CurrentScriptName

  • Updated2024-09-12
  • 1 minute(s) read

Variable: CurrentScriptName

Specifies the name of the script file currently running.

Definition CurrentScriptName, String variable
Access: Read only

The variable only receives a value when the script is running. When the script has finished, the variable receives an empty string.

If you use ScriptInclude to integrate a script, the CurrentScriptName variable in the main part of the integrated script contains the name of the integrated script file. However, if you call procedures and functions of the integrated script, the CurrentScriptName variable contains the name of the calling script file.

Used by

Program Variables in Commands