Variant.Operator Compare

From Xojo Documentation

Method

Variant.Operator_Compare(v as Variant) As Integer

Supported for all project types and targets.

Used to define all the comparison operators for the Variant.

If Operator_Compare is defined, it is called whenever any of the comparison operators are used to compare the Self instance of the class with another instance. The following comparison operators are covered: =, <, >=, <=, >,<>.

Operator_Compare returns an integer whose meaning is as follows: <0 means that Self is less than the passed parameter, 0 means that Self is equal to the passed parameter, and >0 means that Self is greater than the passed parameter. See Operator_Compare.