From Xojo Documentation


Dictionary.Values() As Variant()

Supported for all project types and targets.

Returns all the values in the Dictionary as an array of Variants.


The order is stable and matches the order returned by Keys at least until the Dictionary is modified. Use this method with For Each to loop through all the values.

Sample Code

The following code retrieves the entries in the Dictionary and populates an array of Variants:

Var d As New Dictionary
d.Value(1) = "123"
d.Value(2) = "234"
d.Value(3) = "123"

Var v() As Variant
v = d.Values // after this line v will be an array of variants that are all the values in the dictionary