Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter SixFile Functions (continued)

GetFilename Function

Overview

The GetFilename function will take a path-filename and return the filename with extension.

Syntax/Parameters

Syntax

string = GetFilename ( string name );

Parameters

name

A string containing a filename and optional qualified path.

Return Value

Returns a string containing the filename and extension or an empty string on failure. Use the GetLastError function to retrieve error information.

Remarks

The GetFilename function does not test the existence or validity of the file, its path (if supplied), or its extension. An improperly formatted or qualified path in the name parameter will not necessarily produce an error.

Related Functions

Platform Support

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

Legato IDE, Legato Basic