Xojo.Core.DictionaryEntry

From Xojo Documentation

Class (inherits from Object)

The DictionaryEntry class represents a single key-value pair in a Dictionary. It is immutable and is not tied to the Dictionary it was created from, so subsequent updates to the Dictionary will not change the DictionaryEntry property values.

Properties
Key fa-lock-32.png Value fa-lock-32.png

Sample Code

Loop through keys in a Dictionary:

Dim months As New Xojo.Core.Dictionary
months.Value("January") = 31
months.Value("February") = 28
months.Value("March") = 31
months.Value("April") = 30
months.Value("May") = 31
months.Value("June") = 30
months.Value("July") = 31
months.Value("August") = 31
months.Value("September") = 30
months.Value("October") = 31
months.Value("November") = 30
months.Value("December") = 31

For Each days As Xojo.Core.DictionaryEntry In months
Dim numDays As Integer = days.Value
Next

See Also

Xojo.Core.Dictionary class