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

Dictionary.CreateNamed

Creates a new dictionary with desired key.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Dictionary 8.1 Yes Yes Yes Yes Yes

MBS( "Dictionary.CreateNamed"; KeyRef { ; Key; Value } )

Parameters

Parameter Description Example value
KeyRef The desired key reference. "IDs"
Key Optional
Optional, a key.
Value Optional
Optional, a value.

Result

Returns dictionary reference or error.

Description

Creates a new dictionary with desired key.
Dictionaries are hash maps, so lookup is very fast (often faster than search in your FileMaker database). You can use them for storing parameters or lookup tables.
Optionally you can pass keys and values as parameters to this function.

If you looked for assoziative arrays, you are right here.

Examples

Creates new dictionary with reference number "IDs":

MBS("Dictionary.CreateNamed"; "IDs")

See also


Dictionary.Create   -   Dictionary.Deserialize

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins