EventMonitor.SetEnabled
-----------------------

Enables or disables event monitor.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [EventMonitor](component_EventMonitor.md) | [6.3](newinversion63.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "EventMonitor.SetEnabled"; Value ) 

**MBS**( **"EventMonitor.SetEnabled";** /\* Enables or disables event monitor. \*/  
**$Value**) /\* The new setting.   
Pass 1 to enable or 0 to disable.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | The new setting.    Pass 1 to enable or 0 to disable. | 0 |

### Result

Returns OK or error.

### Description

Enables or disables event monitor.  
This way you can temporary disable it and later enable it again.  
You also need to call [EventMonitor.Install](EventMonitorInstall.md) once.  
### Examples

Enable event monitor:

 MBS ("EventMonitor.SetEnabled"; 1)  
Disable event monitor:

 MBS ("EventMonitor.SetEnabled"; 0)  
### See also

- [EventMonitor.GetEnabled](EventMonitorGetEnabled.md)
- [EventMonitor.Install](EventMonitorInstall.md)

### Blog Entries

- [MBS FileMaker Plugin, version 6.3pr1](https://www.mbsplugins.de/archive/2016-06-01/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 30th May 2016 , last changed 8th August 2020

  
[EventMonitor.SetCardWindow](EventMonitorSetCardWindow.md) - [Events.Alarm.Copy](EventsAlarmCopy.md)

[HTML Version](EventMonitorSetEnabled.shtml)