Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter FiveGeneral Functions (continued)

GetScriptFilename Function

Overview

The GetScriptFilename function returns the fully qualified name of the currently executing script.

Syntax/Parameters

Syntax

string = GetScriptFilename ( );

Parameters

(none)

Return Value

Returns a string containing the filename and path of the script or an empty string if the script is untitled.

Remarks

The GetScriptFilename function returns the name of the primary script file, or in other words, the name of the file that contains the script root. This excludes anything included with the #include directive. Since scripts can include multiple files, this function will return the name of the script currently executing no matter which file contains the function.

If a script has been called from another script, the path of the script will be the location of the script called.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic