CaseInsensitiveComparer: Compare

Compare

Returns the comparison between two values.



 Public Function Compare(
	  ByRef x As Variant,
	  ByRef y As Variant ) As Long

Parameters

x
[ByRef] Variant. The left-hand-side of the equation.
y
[ByRef] Variant. the right-hand-side of the equation.

Return Values

Long -  The relationship between the values.
Relationship guide:
x is equal to y returns 0.
x is greater than y returns a positive value (1).
x is less than y returns a negative value (-1).

Remarks

See Also

Project VBCorLib Overview Class CaseInsensitiveComparer Overview CaseInsensitiveComparer Properties CaseInsensitiveComparer Methods Equals