| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Variable.Get
Retrieves the value of named variable that was declared using Variable.Set.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Variable | 1.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Variable.Get"; Name ) More
(old name: FM.VariableGet)
Parameters
| Parameter | Description | Example |
|---|---|---|
| Name | The Name of the variable |
Description
Retrieves the value of named variable that was declared using Variable.Set.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 Variable.Exists whether a variable exists.
Returns an error if variable doesn't exist. Use Variable.Lookup to lookup without getting an error if the variable doesn't exist.
Examples
Retrieve a variable
MBS( "Variable.Get" ; "myVar" )
See also
- Variable.Add
- Variable.Append
- Variable.AppendValue
- Variable.Exists
- Variable.List
- Variable.Lookup
- Variable.Reset
- Variable.Set
Example Databases
- CURL/WebViewer Download Images with CURL
- Drag and Drop/for Mac/Image drag from one database to other/Image drop
- Drag and Drop/for Mac/Text drag from one database to other/Text drop
- SmartCard/Belgian EID Reader
- Third Party/FileMaker Snippet Storage
- Utility functions/Global Variables
- Window/Window Activation Trigger
Blog Entries
- Window Activation Trigger
- New functions of the MBS Plugin Version 9.5
- Data structures in FileMaker with MBS Plugins
- The power of global variables
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 16th April 2025