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

# ApplicationName

**ApplicationName** returns the name of the **Statelake** application that is executing the script.

For instance, if the script is running as a result of a **Map** or **Action** within **Designer**, then the result will be **Designer.exe**.

**Declaration**: Procedure ApplicationName: string

Example

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