Skip to main content

DictionaryKey

The DictionaryKey function returns the key from the enumerator used to iterate on a SFHub Dictionary.

Note

Notice that DictionaryKey can only be used with an enumerator.

Prototype

DictionaryKey(Enum)

Arguments


Enum Enumerator By value

The name of the enumerator used in the For Each loop SFCodeBlock.

See the For Each SFCodeBlock for more details.

Returns

  String

Exception

  Undefined

Undefined is returned if the enumerator is iterating through a non SFHub Dictionary.

Example

DictionaryKey(en)

This will return the key string from the enumerator 'en' used to iterate through the dictionary.