---
url: >-
  /statelake/scripting-reference/functions-and-procedures/statelake-specific-system-functions/applicationpath.md
---

# ApplicationPath

**ApplicationPath** returns the folder path that the **Statelake** application is running from.

By default this would be C:\Program Files\Flow Software\Statelake\\.

**Declaration**: Function ApplicationPath: string

The example below shows a typical response.

```pascal
procedure OnMapEvent(var Value:Variant);
var theDetail : string;
begin
 LogInfo('');
 LogInfo('What follows is the APPLICATION PATH');
 theDetail := ApplicationPath;
 LogInfo(theDetail);
 LogInfo('');
end;
```

The result that posts to the **Log** is below.
