Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Validate.Exit

Quits the application with the given error code.

Component Version macOS Windows Linux Server iOS SDK
Validate 2.2 ✅ Yes ❌ No ❌ No ❌ No ❌ No

Deprecated

This function was deprecated.

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 functions.

Examples

Exists if checking failed:

MBS( "Validate.Exit"; MBS( "Validate.CheckReceipt"; MBS( "Validate.FindReceipt" ); "1.0"; "de.monkeybreadsoftware.test" ) )

See also

Example Databases

This function is free to use.

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


Validate.CheckReceipt - Validate.FindReceipt