From Xojo Documentation


Xojo.Core.Dictionary.GetIterator() As Xojo.Core.Iterator

Supported for all project types and targets.

Creates a new iterator for the Dictionary which will yield DictionaryEntry objects for its values that you can iterate through using For Each...Next. Part of the Xojo.Core.Iterable interface.


You will not access this method directly. Instead use the ability to iterate over the Dictionary using a For Each...Next loop.

Sample Code

Iterate over the Dictionary entries using For Each..Next:

Var d As New Xojo.Core.Dictionary
d.Value("One") = "Testing"
d.Value("Two") = "Iterator"

For Each entry As Xojo.Core.DictionaryEntry In d
TextArea1.Value = TextArea1.Value + " " + entry.Key + " " + entry.Value