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

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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