SyntaxColoring.AutoCompleteVariables.SetLocals
----------------------------------------------

Sets the initial list of local variables.

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

MBS( "SyntaxColoring.AutoCompleteVariables.SetLocals"; List ) 

**MBS**( **"SyntaxColoring.AutoCompleteVariables.SetLocals";** /\* Sets the initial list of local variables. \*/  
**$List**) /\* The list of variable names.e.g. "error¶param" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| List | The list of variable names. | "error¶param" |

### Result

Returns OK or error.

### Description

Sets the initial list of local variables.  
Put here variables names, which should always show up in auto complete.  
  
This function allows you to pre-populate the list for local variables for auto complete on start of your solution.  
See also [SyntaxColoring.AutoCompleteVariables.SetGlobals](SyntaxColoringAutoCompleteVariablesSetGlobals.md).  
### Examples

Add error to the list of local variables:

 Set Variable \[ $r ; Value: MBS ("SyntaxColoring.AutoCompleteVariables.SetLocals"; "error")\]  
Clear the list:

 MBS ( "SyntaxColoring.AutoCompleteVariables.SetLocals"; "" )  
### See also

- [SyntaxColoring.AutoCompleteParameters.GetEnabled](SyntaxColoringAutoCompleteParametersGetEnabled.md)
- [SyntaxColoring.AutoCompleteParameters.SetEnabled](SyntaxColoringAutoCompleteParametersSetEnabled.md)
- [SyntaxColoring.AutoCompleteVariables.GetEnabled](SyntaxColoringAutoCompleteVariablesGetEnabled.md)
- [SyntaxColoring.AutoCompleteVariables.GetGlobals](SyntaxColoringAutoCompleteVariablesGetGlobals.md)
- [SyntaxColoring.AutoCompleteVariables.GetLocals](SyntaxColoringAutoCompleteVariablesGetLocals.md)
- [SyntaxColoring.AutoCompleteVariables.SetEnabled](SyntaxColoringAutoCompleteVariablesSetEnabled.md)
- [SyntaxColoring.AutoCompleteVariables.SetGlobals](SyntaxColoringAutoCompleteVariablesSetGlobals.md)

### Release notes

- **Version 14.4**
    - Added [SyntaxColoring.AutoCompleteVariables.SetLocals](https://www.mbsplugins.eu/SyntaxColoringAutoCompleteVariablesSetLocals.shtml) and [SyntaxColoring.AutoCompleteVariables.GetLocals](https://www.mbsplugins.eu/SyntaxColoringAutoCompleteVariablesGetLocals.shtml) functions.

### Blog Entries

- [Goodies 24: Auto Complete variables and functions](https://www.monkeybreadsoftware.com/filemaker/SyntaxColoring/24-AutoCompletevariablesandfunctions.shtml)
- [New in MBS FileMaker Plugin 14.4](https://www.mbsplugins.de/archive/2024-09-24/New_in_MBS_FileMaker_Plugin_14/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 14.4 für Claris FileMaker](https://www.mbsplugins.de/archive/2024-09-17/Neues_MBS_Plugin_144_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 14.4 for Claris FileMaker](https://www.mbsplugins.de/archive/2024-09-17/MBS_Plugin_144_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.4pr4](https://www.mbsplugins.de/archive/2024-08-26/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 24th August 2024 , last changed 24th August 2026

  
[SyntaxColoring.AutoCompleteVariables.SetGlobals](SyntaxColoringAutoCompleteVariablesSetGlobals.md) - [SyntaxColoring.CheckVariableDeclaration.Disable](SyntaxColoringCheckVariableDeclarationDisable.md)

[HTML Version](SyntaxColoringAutoCompleteVariablesSetLocals.shtml)