You are here: Function Reference > Alphabetical Listing > F > FileExt

FileExt

Use this function to get the extension component of a file name.

Syntax

FileExt (FullFileName)

Parameter

Description

FullFileName

Enter a string that contains a fully qualified file name, such as:

"d:\mypath\myfile.ext"

The system returns a string that contains the extension component of that file name.

Example

Here is an example:

MYEXT = FileExt("d:\mypath\myfile.ext")

In this example MYEXT would contain:

".ext"

See also