SyntaxColoring.ScriptGoToBox.SetEnabled
---------------------------------------

Enables or disables script go to box.

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

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

**MBS**( **"SyntaxColoring.ScriptGoToBox.SetEnabled";** /\* Enables or disables script go to box. \*/  
**$Value**) /\* The new setting. Pass 1 to show button or 0 to disable.e.g. 1 \*/ 

### Parameters

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

### Result

Returns OK or error.

### Description

Enables or disables script go to box.  
MBS Plugin offers to add a go to box on macOS to the script editor and this function sets the preferences on whether it's added or not.  
Does not work if Syntax Highlighting is off.  
This setting can be set via the preferences dialog, too.  
### Examples

Disables go to box:

 MBS ("SyntaxColoring.ScriptGoToBox.SetEnabled"; 0)  
Enables the go to box:

 MBS ("SyntaxColoring.ScriptGoToBox.SetEnabled"; 1)  
Enable all the plugin enhancements for FileMaker:

 MBS ("[SyntaxColoring.CopyButton.SetEnabled](SyntaxColoringCopyButtonSetEnabled.md)"; 1)  
MBS ("[SyntaxColoring.ScriptSearchBox.SetEnabled](SyntaxColoringScriptSearchBoxSetEnabled.md)"; 1)  
MBS ("SyntaxColoring.ScriptGoTOBox.SetEnabled"; 1)  
MBS ("[SyntaxColoring.RelationshipGraphSearchBox.SetEnabled](SyntaxColoringRelationshipGraphSearchBoxSetEnabled.md)"; 1)  
MBS ( "[SyntaxColoring.CheckVariableDeclaration.Enable](SyntaxColoringCheckVariableDeclarationEnable.md)" )  
MBS ( "[SyntaxColoring.LineNumbers.Enable](SyntaxColoringLineNumbersEnable.md)" )  
MBS ( "[SyntaxColoring.SetScriptHighlightColor](SyntaxColoringSetScriptHighlightColor.md)"; "#CCCCFF" )  
### See also

- [SyntaxColoring.CheckVariableDeclaration.Enable](SyntaxColoringCheckVariableDeclarationEnable.md)
- [SyntaxColoring.CheckVariableDeclaration.Enabled](SyntaxColoringCheckVariableDeclarationEnabled.md)
- [SyntaxColoring.CopyButton.SetEnabled](SyntaxColoringCopyButtonSetEnabled.md)
- [SyntaxColoring.LineNumbers.Enable](SyntaxColoringLineNumbersEnable.md)
- [SyntaxColoring.ScriptGoToBox.GetEnabled](SyntaxColoringScriptGoToBoxGetEnabled.md)
- [SyntaxColoring.ScriptSearchBox.SetEnabled](SyntaxColoringScriptSearchBoxSetEnabled.md)
- [SyntaxColoring.ScriptSearchButton.GetEnabled](SyntaxColoringScriptSearchButtonGetEnabled.md)
- [SyntaxColoring.SetScriptHighlightColor](SyntaxColoringSetScriptHighlightColor.md)
- [SyntaxColoring.SortStyleMenu.GetEnabled](SyntaxColoringSortStyleMenuGetEnabled.md)
- [SyntaxColoring.TurnErrorsBlue.SetEnabled](SyntaxColoringTurnErrorsBlueSetEnabled.md)

### Blog Entries

- [Goodies 16: Line numbers and GoTo](https://www.monkeybreadsoftware.com/filemaker/SyntaxColoring/16-LinenumbersandGoTo.shtml)

### FileMaker Magazin

- [Ausgabe 5/2015, Seite 31](https://filemaker-magazin.de/neuigkeit/3845-Appetithappen-FMM_201505)

This function is free to use.

Created 10th October 2015 , last changed 12nd September 2020

  
[SyntaxColoring.ScriptGoToBox.GetEnabled](SyntaxColoringScriptGoToBoxGetEnabled.md) - [SyntaxColoring.ScriptIfLoopHighlight.GetEnabled](SyntaxColoringScriptIfLoopHighlightGetEnabled.md)

[HTML Version](SyntaxColoringScriptGoToBoxSetEnabled.shtml)