Process.KeepFrontMost
---------------------

Sets whether the plugin should keep FileMaker in front.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Process](component_Process.md) | [7.1](newinversion71.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "Process.KeepFrontMost"; Enabled ) 

**MBS**( **"Process.KeepFrontMost";** /\* Sets whether the plugin should keep FileMaker in front. \*/  
**$Enabled**) /\* Pass 1 to enable or 0 to disable.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Enabled | Pass 1 to enable or 0 to disable. | 1 |

### Result

Returns OK or error.

### Description

Sets whether the plugin should keep FileMaker in front.  
Can be enabled/disabled at any time.  
If enabled, the plugin will bring FileMaker to front whenever it goes to background.  
### Examples

Enable in script:

 Set Variable \[ $$ref ; Value: MBS ( "Process.KeepFrontMost"; 1) \]  
Disable in script:

 Set Variable \[ $$ref ; Value: MBS ( "Process.KeepFrontMost"; 0) \]  
### See also

- [Process.IsFrontMost](ProcessIsFrontMost.md)
- [Process.SetFrontMost](ProcessSetFrontMost.md)

### Release notes

- **Version 7.1**
    - Added [Process.KeepFrontMost](http://www.mbsplugins.eu/ProcessKeepFrontMost.shtml) function.

### Blog Entries

- [MBS FileMaker Plugin 7.1 - Über 4400 Funktionen in einem Plugin](https://www.mbsplugins.de/archive/2017-03-14/MBS_FileMaker_Plugin_71_-_Übe/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 7.1 - More than 4400 Functions In One Plugin](https://www.mbsplugins.de/archive/2017-03-14/MBS_FileMaker_Plugin_71_-_More/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 7.1pr4](https://www.mbsplugins.de/archive/2017-03-06/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 28th February 2017 , last changed 16th December 2020

  
[Process.IsRunning](ProcessIsRunning.md) - [Process.List](ProcessList.md)

[HTML Version](ProcessKeepFrontMost.shtml)