Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter FiveGeneral Functions (continued)

GetScriptFolder Function

Overview

The GetScriptFolder function returns the path of the currently executing script.

Syntax/Parameters

Syntax

string = GetScriptFolder ( );

Parameters

(none)

Return Value

Returns a string containing the path of the script. If the return value is empty, the script is untitled.

Remarks

The GetScriptFileFolder function returns the path of the primary script file, or in other words, the path 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 path 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