Table of Contents

, ,

FILE_EXTENSION

Description

Returns the extension of the specified file or document

Syntax

FILE_EXTENSION (file)

Cannot be used in the condition of a FIND action.

Parameters

An expression returning a string identifying a file or directory name or an attribute of the Document type

Returns

Text: the extension of the file or document.

Example

DISPLAY MESSAGE ('File extension is ' + FILE_EXTENSION('c:/myfile.txt')) 

FILE_NAME, FILE_SIZE, FILE_EXISTS