Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Dictionary.SetVariables
Creates variables with given keys and values from dictionary.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Dictionary | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Dictionary.SetVariables"; DictionaryRef { ; Options } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
DictionaryRef | The reference number to the dictionary. | $dic | |
Options | Whether to create local or global variables. Pass 2 to create global variables ($$) Pass 0 to create local variables ($), default. Add 1 to free the dictionary after doing this. |
1+2 | Optional |
Result
Returns OK or error.
Description
Creates variables with given keys and values from dictionary.The plugin evaluates a Let statement which defines variables in current script with the content of the dictionary. This is very useful for passing arguments to a script (see blog post & guide)
This does not work, if passing dictionary reference number from client to server or back!
Release notes
- Version 11.4
- Improved Dictionary.SetVariables to not allow invalid variable names.
- Version 7.2
- Added option to Dictionary.SetVariables for creating global variables.
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 11.4pr1
- MBS FileMaker Plugin, version 7.2pr5
- MBS FileMaker Plugin 5.1 for OS X/Windows
- Passing parameters via dictionary functions
- MBS FileMaker Plugin, version 5.1pr1
This function checks for a license.
Created 14th March 2015, last changed 18th July 2021
