SyntaxColoring.SetCustomFunctionToolsEnabled
--------------------------------------------

Sets whether to show custom function and calculation tools.

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

MBS( "SyntaxColoring.SetCustomFunctionToolsEnabled"; Value ) 

**MBS**( **"SyntaxColoring.SetCustomFunctionToolsEnabled";** /\* Sets whether to show custom function and calculation tools. \*/  
**$Value**) /\* The new setting.  
Pass 1 to enable or 0 to disable.e.g. 1 \*/ 

### Parameters

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

### Result

Returns OK or error.

### Description

Sets whether to show custom function and calculation tools.  
If enabled, we show execute and check syntax buttons in the dialog to edit custom functions. Also for calculation dialogs in various places in FileMaker Pro.  
You can check syntax and run the current calculation.  
For custom functions, you can define a test case, you can put a command line with /// in front and an assignment for the parameter.  
  
e.g. if you have parameters firstName and age, you can add two lines on top of calculation:  
/// firstName = "Hello"  
/// age = 35  
  
The plugin will check all lines for beginning with /// a variable name and an equal character. Any text following is used in evaluate to set the local variable.   
  
This allows you to define a test case with test values to run. Please make sure you don't cause endless loops!  
### Examples

Enable it:

 MBS ( "SyntaxColoring.SetCustomFunctionToolsEnabled"; 1 )  
### See also

- [SyntaxColoring.GetCustomFunctionToolsEnabled](SyntaxColoringGetCustomFunctionToolsEnabled.md)

### Release notes

- **Version 11.1**
    - Added [SyntaxColoring.GetCustomFunctionToolsEnabled](https://www.mbsplugins.eu/SyntaxColoringGetCustomFunctionToolsEnabled.shtml) and [SyntaxColoring.SetCustomFunctionToolsEnabled](https://www.mbsplugins.eu/SyntaxColoringSetCustomFunctionToolsEnabled.shtml) functions.

### Blog Entries

- [Goodies 37: Format button](https://www.monkeybreadsoftware.com/filemaker/SyntaxColoring/37-Formatbutton.shtml)
- [Goodies 27: Custom Function Tools](https://www.monkeybreadsoftware.com/filemaker/SyntaxColoring/27-CustomFunctionToolsforFileMakerPro.shtml)
- [Format button for FileMaker](https://www.mbsplugins.de/archive/2023-11-18/Format_button_for_FileMaker/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.1pr3](https://www.mbsplugins.de/archive/2021-02-09/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 6th February 2021 , last changed 11st February 2021

  
[SyntaxColoring.SetCodeFoldingEnabled](SyntaxColoringSetCodeFoldingEnabled.md) - [SyntaxColoring.SetDataViewerFormatButtonEnabled](SyntaxColoringSetDataViewerFormatButtonEnabled.md)

[HTML Version](SyntaxColoringSetCustomFunctionToolsEnabled.shtml)