---
url: >-
  /statelake/scripting-reference/classes/file-connection-class-tflofilecon/filecon.currentfilename.md
---

# FileCon.CurrentFileName

Returns the file name including the full path, of the file this **Data Definition** is connected to.

This property is read only.

Do not set this property to another value during the **Map**.

**Declaration**: property CurrentFileName : string

An example follows.

```pascal
procedure OnMapEvent(var Value:Variant);
begin
 //Result is the name of the file that is the source of the map
  Value := Source.FileCon.CurrentFilename;
end;
```
