| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
IsError
Checks whether last plugin function returned error.
| Component | Version | macOS | Windows | Linux | Server | 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 happened.
This makes it easier to detect if the result text is an error message vs. a real result.
See also ClearErrors and HadErrors functions.
If you have watch expressions in data viewer, this function may not return the result of the last script line, if the calculation in the data viewer resets it!
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
If [ MBS("IsError") ]
Show Custom Dialog [ Title: "Error"; Message: $r; Buttons: "OK”, "Abbrechen” ]
Exit Script [ ]
End If
See also
- XL.Book.AddPictureContainer
- XL.Book.DeleteSheet
- XL.Book.SaveToFile
- XL.LoadBook
- XML.ExtractText
- XML.Format
- XML.GetPathValue
- XML.Import
- XML.Import.Work
- XML.SubTree
Release notes
- Version 15.0
- Changed functions returning CURL errors to mark this as error, so IsError function returns true. This affects CURL.Perform, CURL.FormClear, CURL.FormFinish, CURL.Upkeep, CURL.SendText, CURL.SendData, CURL.PerformAsync, CURL.WebSocketSend, CURL.WebSocketReceive, CURL.SetSocketNonBlocking, CURL.SetSocketNonBlocking, SendMail.PrepareCURL and various CURL.SetOption functions.
- Version 12.4
- Fixed a problem where ErrorLog would show IsError function.
Blog Entries
- Retract text from a PDF with DynaPDF
- MBS FileMaker Plugin 15.3 News
- Validate electronic invoices with Saxon
- Visualize electronic invoices with Saxon
- Create QR-Codes with circles
- MBS FileMaker Advent calendar - Door 12 - Sending Mails
- MBS FileMaker Advent calendar - Door 10 - Reading The Wish List
- MBS FileMaker Advent calendar - Door 7 - Open Files With Roundabout Route Via Temporary Files
- MBS FileMaker Advent calendar - Door 5 - Apple Contacts
- MBS FileMaker Advent calendar - Door 3 - Drag & Drop
FileMaker Magazin
This function is free to use.
Created 18th August 2014, last changed 28th October 2025