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: 11.3   11.4   11.5   12.0   12.1   12.2   12.3   12.4   12.5   13.0    Statistic    FMM    Blog  

FM.VariableGet

Retrieves the value of named variable that was declared using FM.VariableSet.

Component Version macOS Windows Linux Server iOS SDK
FM Variables 1.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "FM.VariableGet"; Name )   More

Parameters

Parameter Description Example
Name The Name of the variable

Description

Retrieves the value of named variable that was declared using FM.VariableSet.
Unlike the variables that were introduced in FileMaker 8 these variables are not limited to the File or Script. In other words they can be retrieved from any file in the system regardless of where they were declared.

You can check with FM.VariableExists whether a variable exists.
Returns an error if variable doesn't exist. Use FM.VariableLookup to lookup without getting an error if the variable doesn't exist.

Examples

Retrieve a variable

MBS( "FM.VariableGet" ; "myVar" )

See also

Example Databases

Blog Entries

Created 18th August 2014, last changed 2nd June 2022


FM.VariableExists - FM.VariableList

Feedback: Report problem or ask question.


Start Chat