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

FileName

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

Syntax

FileName (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 name component of that file name.

Example

Here is an example:

MYNAME = FileName("d:\mypath\myfile.ext")

In this example, MYNAME would contain:

"myfile"

See also