Int64Static: Compare |
Compares two Int64 values and returns a value indicating whether one is less than, equal to, or greater than the other.
Public Function Compare( ByRef a As Int64, ByRef b As Int64 ) As Long
Value | Meaning |
---|---|
Less than zero | X is less than Y. |
Zero | X equals Y. |
Greater than zero | X is greater than Y. |
The following code illustrates comparing two 64-bit integer values.
Public Sub Main() Dim x As Int64 Dim y As Int64 x = CInt64(1922) y = CInt64(400) Debug.Print Int64.Compare(x, y) Displays 1 Debug.Print Int64.Compare(x, x) Displays 0 Debug.Print Int64.Compare(y, x) Displays -1 End Sub