method addEntriesFromDictionary

void addEntriesFromDictionary(dictionary otherDictionary);

Argumente

Zurückgegebener Wert

This method adds the entries from specified dictionary.
var dictObj = shell.serviceManager.basics.dictionary;
dictObj.setValueForKey("John", "FirstName");
dictObj.setValueForKey("Doe", "LastName");
dictObj.setValueForKey("35", "Age");

var dictObj2 = shell.serviceManager.basics.dictionary;
dictObj2.setValueForKey("123-444-5555", "Telephone");
dictObj2.setValueForKey("123-444-6666", "Fax");
dictObj.addEntriesFromDictionary(dictObj2);

//get all the key names into an array object.  See array class for more information
var allKeys = dictObj.allKeys();
for (var x = 0; x < allKeys.count; x++)
{
    //dictObj.valueForKey(allKeys.getValue(x))
    //can be used to get the value for the particular key
}