Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4    Statistic  

IsError

Checks whether last plugin function returned error.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Plugin 3.4 Yes Yes Yes Yes Yes
MBS( "IsError" )   More

Parameters

none

Result

Returns 1 or 0.

Description

Checks whether last plugin function returned error.
Returns 1 if last function returned an error.
Or returns 0 if no error happened.
This makes it easier to detect if the result text is an error message vs. a real result.

Examples

Cause an error and handle it:

Set Variable [ $r; Value:MBS( "ZipFile.Open"; "" ) ]
If [ MBS("IsError") ]
    Show Custom Dialog [ Title: "Error"; Message: $r; Buttons: "OK”, "Abbrechen” ]
    Exit Script [ ]
End If

See also

Blog Entries

FileMaker Magazin

Created 18th August 2014, last changed 21st October 2017


IsClient   -   IsIOS

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos