App.Exit
--------

Quits the current process.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [App](component_App.md) | [11.1](newinversion111.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "App.Exit"; ExitCode ) 

**MBS**( **"App.Exit";** /\* Quits the current process. \*/  
**$ExitCode**) /\* The exit code to pass.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ExitCode | The exit code to pass. | 0 |

### Result

Returns OK or error.

### Description

Quits the current process.  
Can be used on server to restart scripting engine. The engine then is restarted right away.  
On success, the next line in the script will not run.  
### Examples

Exit in script:

 Set Variable \[$r ; MBS ("App.Exit")\]  
### Release notes

- **Version 11.1**
    - Added [App.Exit](https://www.mbsplugins.eu/AppExit.shtml) to quit current FileMaker process. Allows to restart server scripting engine.

### Blog Entries

- [MBS FileMaker Plugin, version 11.1pr5](https://www.mbsplugins.de/archive/2021-02-20/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 16th February 2021 , last changed 16th February 2021

  
[App.EffectiveUserID](AppEffectiveUserID.md) - [App.GetDockBadgeLabel](AppGetDockBadgeLabel.md)

[HTML Version](AppExit.shtml)