Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

SyntaxColoring.AutoCompleteVariables.SetEnabled

Sets whether to do auto completion for calculation dialogs.

Component Version macOS Windows Linux Server iOS SDK
SyntaxColoring 12.0 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "SyntaxColoring.AutoCompleteVariables.SetEnabled"; Value )   More

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 do auto completion for calculation dialogs.
MBS Plugin searches the script upwards for up to 500 lines (see SyntaxColoring.CheckVariableDeclaration.SetLimits) to find variable declarations.
This includes Set Variable script step, various Insert script steps and special comments with @variable, @parameter or @constant prefixes. We then assemble a list of possible variable names to present when you type a $ symbol in your calculation dialog.

Typing an underscore character seems to complete the word right away and may lead to an extra underscore character, which you need to remove manually.

Examples

Enable it:

Set Variable [ $r; Value: MBS( "SyntaxColoring.AutoCompleteVariables.SetEnabled"; 1 ) ]

Disable Auto Complete:

Set Variable [ $r; Value: MBS( "SyntaxColoring.AutoCompleteVariables.SetEnabled"; 0 ) ]

See also

Release notes

Blog Entries

This function is free to use.

Created 1st December 2021, last changed 30th December 2021


SyntaxColoring.AutoCompleteVariables.GetEnabled - SyntaxColoring.CheckVariableDeclaration.Disable

💬 Ask a question or report a problem