Skip to main content

DictionaryAdd

The DictionaryAdd function add pair values to the dictionary.

Prototype

 DictionaryAdd(Dictionary; Key; Value; ...)

Arguments


Dictionary Dictionary By value

Argument contains the dictionary.

Key String By value

Valid string used to qualify the key associated to the value.

Value Any By value

Value associated to the key. The value must be according to the type of values in the dictionary.
A variable number of pairs (Key, Value) are accepted to add more initialization values.

Returns

True, if values are added to the dictionary.

Exception

Undefined

Undefined is returned if the Type parameter contains a not supported type or the key is not a string or one
of the initialization values is not consistent with the type of dictionary.

Example

$$myDictionary = DictionaryAdd($$myDictionary ; 'Key3'; 2; 'Key4'; 4)

This will add two new pairs (Key, Value) into the variable $$myDictionary.