Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

SyntaxColoring.CheckVariableDeclaration.Enabled

Queries if checking variable declarations are enabled or not.

Component Version macOS Windows Linux Server iOS SDK
SyntaxColoring 3.5 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "SyntaxColoring.CheckVariableDeclaration.Enabled" )

Parameters

none

Result

Returns 1 if checking variable declarations are enabled and 0 if not.

Description

Queries if checking variable declarations are enabled or not.

Examples

Check if enabled:

Set Variable [ $emab; MBS( "SyntaxColoring.CheckVariableDeclaration.Enabled" ) ]

Enable all the plugin enhancements for FileMaker:

MBS("SyntaxColoring.CopyButton.SetEnabled"; 1)
MBS("SyntaxColoring.ScriptSearchBox.SetEnabled"; 1)
MBS("SyntaxColoring.ScriptGoToBox.SetEnabled"; 1)
MBS("SyntaxColoring.RelationshipGraphSearchBox.SetEnabled"; 1)
MBS( "SyntaxColoring.CheckVariableDeclaration.Enable" )
MBS( "SyntaxColoring.LineNumbers.Enable" )
MBS( "SyntaxColoring.SetScriptHighlightColor"; "#CCCCFF" )

Use @variable to declare variable:

# Declare variable via comment as plugin has no way to know easily that $test is defined here
# @variable $test
Insert Current Time [ Select ; Target: $test ]

Declare variable via comment:

# Declare variables via comment as plugin has no way to know easily that $test is defined here
# @parameter $param1
# @parameter $param2
Set Variable [ $r ; Value: Let ( [ parameters = Get(ScriptParameter); $param1 = GetValue(parameters; 1); $param2 = GetValue(parameters; 2) ] ; 1 ) ]

See also

This function is free to use.

Created 18th August 2014, last changed 12nd September 2020


SyntaxColoring.CheckVariableDeclaration.Enable - SyntaxColoring.CheckVariableDeclaration.GetLimits