Validate.Exit
-------------

Quits the application with the given error code.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Validate](component_Validate.md) | [2.2](newinversion22.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

### Deprecated

This function was [deprecated](deprecated.md).

MBS( "Validate.Exit" ) ### Parameters

none

### Result

Returns OK or exists FileMaker.

### Description

Quits the application with the given error code.   
Normally you pass 173 to quit with error code 173, so the Finder shows an error message about it. You can of course use this function to exit with other error codes. Any value between 0 and 255 is okay. If you pass not a number (e.g. a string), the function returns OK. This allows the function to be chained with other [Validate](component_Validate.md) functions.  
### Examples

Exists if checking failed:

 MBS ( "Validate.Exit"; MBS ( "[Validate.CheckReceipt](ValidateCheckReceipt.md)"; MBS ( "[Validate.FindReceipt](ValidateFindReceipt.md)" ); "1.0 "; "de.monkeybreadsoftware.test" ) )  
### See also

- [Validate.CheckReceipt](ValidateCheckReceipt.md)
- [Validate.FindReceipt](ValidateFindReceipt.md)

### Example Databases

- [Mac only/Receipt Check for Mac App Store/Receipt Check](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/Receipt%20Check%20for%20Mac%20App%20Store/Receipt%20Check.shtml#1GroupButton108.0000000318.0000000127.0000000427.0000000LayoutObjectAnchor_)

This function is free to use.

Created 18th August 2014 , last changed 12nd June 2020

  
[Validate.CheckReceipt](ValidateCheckReceipt.md) - [Validate.FindReceipt](ValidateFindReceipt.md)

[HTML Version](ValidateExit.shtml)