Dictionary.Constructor(ParamArray entries as Pair)

From Xojo Documentation

Revision as of 22:34, 17 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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.

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