Dictionary.Key

From Xojo Documentation

Method

Dictionary.Key(Index As Integer) As Variant

Supported for all project types and targets.

Returns the value of key for the Indexth sequential item in the Dictionary. The first item is numbered zero.

Notes

Keys are not case-sensitive, but they are encoding-sensitive. If there is no Indexth item in the Dictionary, a call generates an OutOfBoundsException error.

Sample Code

Var d As New Dictionary
d.Value(RGB(255, 0, 0)) = "This is pure red."
d.Value(RGB(0, 255, 255)) = "This is pure cyan."
MessageBox(d.Value(d.Key(1))( // retrieves "This is pure cyan."