Version: CompareTo

CompareTo

Compares the current Version object to a specified Version object and returns an indication of their relative values.



 Public Function CompareTo(
	  ByVal Value As Version ) As Long

Parameters

Value
[ByVal] Version. A Version object to compare to the current Version object, or Nothing.

Return Values

Long -  A signed integer that indicates the relative values of the two objects, as shown in the following table.
Value Meaning
Less than zeroThe current Version object is a version before Value.
ZeroThe current Version object is the same version as Value.
Greater than zeroThe current Version object is a version subsequent to Value.
-or-
Value is Nothing.

Remarks

The components of Version in decreasing order of importance are: major, minor, build, and revision. An unknown component is assumed to be older than any known component. For example:

See Also

Project CorLib Overview

Class Version Overview