---
url: >-
  /statelake/scripting-reference/classes/data-definition-class-tflodatasource/tflodatasource.filecon.md
---

# TFloDataSource.FileCon

Returns a reference to the **File Connection** object, which will allow you to then use properties of the **File Connection** class.

**Declaration**: property FileCon: TFloFileCon;

An example.

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