Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3    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" )

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


IsClient   -   IsIOS

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins