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

SyntaxColoring.SetCustomFunctionToolsEnabled

Sets whether to show custom function and calculation tools.

Component Version macOS Windows Linux Server 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

Blog Entries

This function is free to use.

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


SyntaxColoring.SetCodeFoldingEnabled - SyntaxColoring.SetDebuggerTooltipsEnabled