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


Adds an evaluate function.

Component Version macOS Windows Linux Server iOS SDK
Python 14.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Python.AddEvaluateFunction"; PythonRef { ; FunctionName } )   More


Parameter Description Example Flags
PythonRef The Python reference number. $python
FunctionName The function name to use.
Default is "FMEvaluate".
"FMEvaluate" Optional


Returns value or error.


Adds an evaluate function.
You can register a function to evaluate FileMaker expressions if you like to have that. You can pick the name to use, but we default to FMEvaluate.
The Python function is then added locally and can be called. It takes one parameter with the expression to evaluate.


Try the evaluate function:

Set Variable [ $p ; Value: MBS("Python.New") ]
Set Variable [ $r ; Value: MBS("Python.AddEvaluateFunction"; $p; "FMEvaluate") ]
Set Variable [ $r ; Value: MBS("Python.Evaluate"; $p; "FMEvaluate('1+2')") ]
Show Custom Dialog [ "Result" ; $r ]
Set Variable [ $r ; Value: MBS("Python.Release"; $p) ]

See also

Example Databases

This function is free to use.

Created 31st May 2024, last changed 31st May 2024

Progressdialog.SetScript - Python.AddExecuteSQLFunction