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.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1    Statistic    FMM    Blog  

SyntaxColoring.SetCustomFunctionToolsEnabled

Sets whether to show custom function and calculation tools.

Component Version macOS Windows Linux Server FileMaker iOS SDK
SyntaxColoring 11.1 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "SyntaxColoring.SetCustomFunctionToolsEnabled"; 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 show custom function and calculation tools.
If enabled, we show execute and check syntax buttons in the dialog to edit custom functions. Also for calculation dialogs in various places in FileMaker Pro.
You can check syntax and run the current calculation.
For custom functions, you can define a test case, you can put a command line with /// in front and an assignment for the parameter.

e.g. if you have parameters firstName and age, you can add two lines on top of calculation:
/// firstName = "Hello"
/// age = 35

The plugin will check all lines for beginning with /// a variable name and an equal character. Any text following is used in evaluate to set the local variable.

This allows you to define a test case with test values to run. Please make sure you don't cause endless loops!

Examples

Enable it:

MBS( "SyntaxColoring.SetCustomFunctionToolsEnabled"; 1 )

See also

Release notes

  • Version 11.1
    • Added SyntaxColoring.GetCustomFunctionToolsEnabled and SyntaxColoring.SetCustomFunctionToolsEnabled functions.

Created 6th February 2021, last changed 11st February 2021


SyntaxColoring.SetBlackFieldPicker   -   SyntaxColoring.SetDebuggerTooltipsEnabled

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos

Start Chat