Dictionary.Constructor(ParamArray entries as Pair)

From Xojo Documentation

Constructor
Dictionary.Constructor(ParamArray entries As Pair)

The parameter is the list of Pairs that will make up the Dictionary.

Sample Code

This example passes the specs for a rectangle as as a list of Pairs. The keys are Top, Left, Width, and Height and the values are the values that belong to each key value.

Dim d As New Dictionary("left" : 0, "top" : 10, "width" : 300, "height" : 300)