Set mydict = CreateObject("Scripting.Dictionary")
' Append to existing item value using Remove/Add
If mydict.Exists(key) Then
temp = mydict(key) & ";" & item
mydict.Remove(key)
mydict.Add key, temp
Else
mydict.Add key, item
End If
' Or is there a simpler way?
If mydict.Exists(key) Then
mydict(key) = mydict(key) & ";" & item
Else
mydict.Add key, item
End If
mydict.item(key) = newValue
--
urkec
Thanks. What then is the difference between the following?
mydict.Item(key)
mydict(key)
They both appear to evaluate to the value of item in a key/item pair.
Anyone who has loaded Scripting library into an IDE that has an object
browser.
>Maybe the Item is the default property of the Dictionary object
Yes it is.