Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   8.6    Statistic  

Dictionary.SetVariables

Creates variables with given keys and value from dictionary.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Dictionary 5.1 Yes Yes Yes Yes Yes
MBS( "Dictionary.SetVariables"; DictionaryRef { ; Options } )   More

Parameters

Parameter Description Example value
DictionaryRef The reference number to the dictionary as returned by Dictionary.Create function. $dic
Options Optional
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

Result

Returns OK or error.

Description

Creates variables with given keys and value 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 Directory reference number from client to server or back!

See also

Example Databases

Blog Entries

Created 14th March 2015, last changed 8th May 2017


Dictionary.SetValueForKey   -   Dictionary.ToJSON

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins