Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter FourteenProject Functions (continued)

ProjectGetEntry Function

Overview

The ProjectGetEntry function will retrieve the name of a file entry by index from the currently open project.

Syntax/Parameters

Syntax

string = ProjectGetEntry ( int index, [boolean path] );

Parameters

index

An int that specifies the zero-based position of the entry within the project.

path

An optional boolean specifying whether or not the path should be included with the entry name. When TRUE, the function retrieves the path with the name. The default value is FALSE.

Return Value

Returns a string containing the file name of the project entry or an empty string on failure. Use the GetLastError function to retrieve error information.

Remarks

The ProjectGetEntry function retrieves the name (and optionally the path) of the entry specified by the index parameter. The location specified by the index parameter may or may not contain a project entry since the entry could have been deleted during the application session. An empty return string could indicate the position is empty or the index is out of range. Use the GetLastError function to determine if there was an error.

Note that script programmers should not rely on the position of information since it may change from project instance to instance.

Related Functions

Platform Support

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