IComparable: CompareTo

CompareTo

Compares a value to the current object instance.



 Public Function CompareTo(
	  ByRef Value As Variant ) As Long

Parameters

Value
[ByRef] Variant. The value to compare this object to.

Return Values

Long -  Value indicating its relationship to the value.

Remarks

Comparison guide:
This object is the same value as value returns a 0.
This object is less than the value returns a negative value.
This object is greater than the value returns a positive value.

See Also

Project VBCorLib Overview Class IComparable Overview IComparable Properties IComparable Methods