| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
FM.AddErrorMessage
Adds a custom error to the error list used by the plugin.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| FM | 15.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "FM.AddErrorMessage"; ErrorNumber; ErrorMessage ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| ErrorNumber | The error number. | 12345 |
| ErrorMessage | The error message to use. |
Result
Returns OK or error.
Description
Adds a custom error to the error list used by the plugin.This is used for FM.ErrorMessage function and our trace logging.
The new errors are only stored in memory, so you need to add them each time in the start script, e.g. from reading a table.
The MBS Plugin has a list of over 260 error messages hard coded. But since newer FileMaker versions introduce new errors, you can add newer ones yourself here. Feel free to let us know newer error codes to add to the plugin.
Examples
Add a test error and query it:
MBS( "FM.AddErrorMessage"; 12345; "Test error" ) & ": " &
MBS("FM.ErrorMessage"; 12345)
Example result: OK: Test error
MBS("FM.ErrorMessage"; 12345)
Example result: OK: Test error
See also
Release notes
- Version 15.5
- Added FM.AddErrorMessage function.
Blog Entries
This function is free to use.
Created 29th October 2025, last changed 29th October 2025
Events.defaultCalendarForNewReminders - FM.AllowFileDragDrop