---
url: /flow/guide/scripting-reference/classes/data-definition/filecon.md
---

# FileCon

## Declaration

`property FileCon: TFloFileCon;`

### Example

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

## Description

Returns a reference to the File Connection object. You can then use properties of the File Connection class
