Dictionary functions

To call any of the following functions, qualify the function name with the name of the dictionary. In the following example, the dictionary is named row:
  if (row.containsKey(age))
    ; 
  end

The following functions are available:

Table 1. Dictionary functions
Function Description
result = dictionaryName.containsKey (key) Tells you whether a specified string is a key in the dictionary.
keys = dictionaryName.getKeys() Returns an array of strings, each of which is a key in the dictionary.
values = dictionaryName.getValues() Returns all the value portions of the name/value pairs in a dictionary.
dictionaryName.insertAll (sourceDictionary) Copies the key/value entries from one dictionary to another.
dictionaryName.removeAll() Removes all key/value entries in the dictionary.
dictionaryName.removeElement (key) Removes an entry associated with a specified key.
result = dictionaryName.size () Returns the number of key/value entries in the dictionary.

Feedback