Is it possible to modify (update) values in a dictionary ?


I would like to modify the content of a Xojo.Core.Dictionary in which I store values.

I added the method as explained in the doc. I get an array of DictionaryEntries I can iterate through.

How can I modify the values of specific entries?


Same way as you create them

[code]MyDictionary.value(“Car”) = “Ford”
MyDictionary.value(“Car”) = “Chevy”

msgbox MyDictionary.value(“Car”)

Ok thanks!

After reading the doc on dictionary entries, I finally found out that a value is overwritten by giving a new value to the same key.

Problem solved!