M-Files API 22.6.11519.0
CompareTo Method
TypedValue Object : CompareTo Method
The typed value to compare.
Description
Compares this typed value to the given typed value.
Syntax
Visual Basic
Public Function CompareTo( _
   ByVal TypedValue As TypedValue _
) As Long
Parameters
TypedValue
The typed value to compare.
Return Type

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.

Remarks

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.

See Also

TypedValue Object  | TypedValue Members