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: 9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5   10.6    Statistic    FMM    Blog  

SyntaxColoring.CheckVariableDeclaration.Enabled

Queries if checking variable declarations are enabled or not.

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

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

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


SyntaxColoring.CheckVariableDeclaration.Enable   -   SyntaxColoring.CheckVariableDeclaration.GetLimits

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins

Start Chat