Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter SixFile Functions (continued)

GetExtension Function

Overview

The GetExtension function returns the file extension of a file.

Syntax/Parameters

Syntax

string = GetExtension ( string name );

Parameters

name

A string containing a filename and optional qualified path.

Return Value

Returns a string containing the file extension with a leading period or an empty string on failure. Use the GetLastError function to retrieve error information.

Remarks

The GetExtension function does not test the existence or validity of the file, its path (if supplied), or its extension. If the name parameter does not contain a file extension, the GetLastError function will return ERROR_EOD.

Related Functions

Platform Support

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

Legato IDE, Legato Basic