SyntaxColoring.SortMenuEntries.SetEnabled
-----------------------------------------

Enables or disables menu sorting.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SyntaxColoring](component_SyntaxColoring.md) | [15.1](newinversion151.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "SyntaxColoring.SortMenuEntries.SetEnabled"; Value ) 

**MBS**( **"SyntaxColoring.SortMenuEntries.SetEnabled";** /\* Enables or disables menu sorting. \*/  
**$Value**) /\* The new setting.  
Pass 1 to enable or 0 to disable. \*/ 

### Parameters

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

### Result

Returns OK or error.

### Description

Enables or disables menu sorting.  
We sort the "Show Window" menu to show hidden database window and we sort the object styles in the layout editor.  
### Examples

Disable the menu sorting:

 MBS ( "SyntaxColoring.SortMenuEntries.SetEnabled"; 0 )  
Enable the menu sorting:

 MBS ( "SyntaxColoring.SortMenuEntries.SetEnabled"; 1 )  
### See also

- [SyntaxColoring.CommentLinks.GetEnabled](SyntaxColoringCommentLinksGetEnabled.md)
- [SyntaxColoring.CommentLinks.SetEnabled](SyntaxColoringCommentLinksSetEnabled.md)
- [SyntaxColoring.ContextualMenuEnabled.SetEnabled](SyntaxColoringContextualMenuEnabledSetEnabled.md)
- [SyntaxColoring.SortMenuEntries.GetEnabled](SyntaxColoringSortMenuEntriesGetEnabled.md)
- [SyntaxColoring.SortStyleMenu.SetEnabled](SyntaxColoringSortStyleMenuSetEnabled.md)

### Release notes

- **Version 15.1**
    - Added [SyntaxColoring.SortMenuEntries.GetEnabled](https://www.mbsplugins.eu/SyntaxColoringSortMenuEntriesGetEnabled.shtml) and [SyntaxColoring.SortMenuEntries.SetEnabled](https://www.mbsplugins.eu/SyntaxColoringSortMenuEntriesSetEnabled.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin, version 15.1pr2](https://www.mbsplugins.de/archive/2025-02-06/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 5th February 2025 , last changed 5th February 2025

  
[SyntaxColoring.SortMenuEntries.GetEnabled](SyntaxColoringSortMenuEntriesGetEnabled.md) - [SyntaxColoring.SortStyleMenu.GetEnabled](SyntaxColoringSortStyleMenuGetEnabled.md)

[HTML Version](SyntaxColoringSortMenuEntriesSetEnabled.shtml)