Pair.Constructor(left as Variant, right as Variant)

From Xojo Documentation

Revision as of 23:48, 24 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Constructor

Pair.Constructor(left as Variant, right as Variant)

Creates a Pair instance that is populated by the passed values.

Notes

You can also use the ":" operator to assing the values:

Sample Code

The following creates the pair 1:2:

Var p As New Pair(1, 2)

You can also use the : operator, so the following is equivalent:

Var p As Pair = 1 : 2