Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Enables checking variable declarations in FileMaker Scripts.

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




Returns OK on success.


Enables 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 and newer.
Checking variable declarations can only be enabled in FileMaker Pro, not in server or runtime versions.
By default this is off. It takes some additional CPU time for drawing the script and not everyone may want to have it on. Of course the extra work for the CPU should not be noticeable to the developer. Variable names declared inside Let commands are not recognized.
May only work in Advanced version of FileMaker.

You can declare variables in comment when writing @param, @variable or @constant in the comment followed by variable name.


Enable or disable checking variable declarations:

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

See also

Blog Entries

Created 18th August 2014, last changed 19th September 2017

SyntaxColoring.CheckVariableDeclaration.Disable   -   SyntaxColoring.CheckVariableDeclaration.Enabled

Feedback: Report problem or ask question.

MBS FileMaker blog