Visual Basic |
---|
Public Function CompareTo( _ ByVal TypedValue As TypedValue _ ) As Long |
If the return value is less than zero, the left object version precedes the right one. If the return value is greater than zero, the right object version precedes the left one. If the return value is zero, the object versions have equal order ranking.
There is no type coercion before comparison, i.e. the data types of the both typed values should be the same for a proper comparison. If one of the typed values is uninitialized, it is considered to follow the other value. If the data types are different, the precedence order is calculated by using internal constants representing the data types.
If the typed values represent string values the natural case insensitive comparison is used.