Dictionary.Keys
---------------

Returns list with all keys.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Dictionary](component_Dictionary.md) | [5.0](newinversion50.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Dictionary.Keys"; DictionaryRef ) 

**MBS**( **"Dictionary.Keys";** /\* Returns list with all keys. \*/  
**$DictionaryRef**) /\* The reference number to the dictionary.e.g. $dic \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| DictionaryRef | The reference number to the dictionary. | $dic |

### Result

Returns list or error.

### Description

Returns list with all keys.  
The order is random and defined by how the dictionary internally stores values.  
See also [Dictionary.Values](DictionaryValues.md).  
### Examples

Query list of keys:

 $keys = MBS ("Dictionary.Keys"; $Param )  
### See also

- [Dictionary.AddSQL](DictionaryAddSQL.md)
- [Dictionary.Clear](DictionaryClear.md)
- [Dictionary.Create](DictionaryCreate.md)
- [Dictionary.Deserialize](DictionaryDeserialize.md)
- [Dictionary.HasKey](DictionaryHasKey.md)
- [Dictionary.HasKeys](DictionaryHasKeys.md)
- [Dictionary.KeysWithPostfix](DictionaryKeysWithPostfix.md)
- [Dictionary.KeysWithPrefix](DictionaryKeysWithPrefix.md)
- [Dictionary.List](DictionaryList.md)
- [Dictionary.Serialize](DictionarySerialize.md)

### Release notes

- **Version 11.4**
    - Added [Dictionary.KeysWithPostfix](https://www.mbsplugins.eu/DictionaryKeysWithPostfix.shtml) and [Dictionary.KeysWithPrefix](https://www.mbsplugins.eu/DictionaryKeysWithPrefix.shtml) functions.

### Example Databases

- [Dictionary/Pass Parameters with Dictionary](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Dictionary/Pass%20Parameters%20with%20Dictionary.shtml#3ScriptAnchor_)

This function checks for a license.

Created 12nd December 2014 , last changed 1st March 2021

  
[Dictionary.KeyAtIndex](DictionaryKeyAtIndex.md) - [Dictionary.KeysWithPostfix](DictionaryKeysWithPostfix.md)

[HTML Version](DictionaryKeys.shtml)