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

SyntaxColoring.CheckVariableDeclaration.Disable

Disables checking variable declarations in FileMaker Scripts.

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

Parameters

none

Result

Returns OK on success.

Description

Disables checking variable declarations in FileMaker Scripts.
Settings are saved in preferences files and you can use different settings in different FileMaker versions.
Works with FileMaker 11 or newer.
Checking variable declarations can only be enabled in FileMaker Pro, not in server or runtime versions.
This setting can be set via the preferences dialog, too.

Examples

Enable or disable checking variable declarations:

If (Enable)
      Set Variable [$r; MBS( "SyntaxColoring.CheckVariableDeclaration.Enable" )]
else
      Set Variable [$r; MBS( "SyntaxColoring.CheckVariableDeclaration.Disable" )]
end if

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 15th December 2019


SyntaxColoring.AutoCompleteVariables.SetEnabled - SyntaxColoring.CheckVariableDeclaration.Enable