Compare two Int64 values : Data Type « Data Types « VB.Net

Home
VB.Net
1.2D
2.Application
3.Class
4.Data Structure
5.Data Types
6.Database ADO.net
7.Date Time
8.Development
9.Event
10.File Directory
11.Generics
12.GUI
13.Internationalization I18N
14.Language Basics
15.LINQ
16.Network Remote
17.Reflection
18.Security
19.Thread
20.Windows Presentation Foundation
21.Windows System
22.XML
23.XML LINQ
VB.Net » Data Types » Data TypeScreenshots 
Compare two Int64 values
 

Imports System

Class Sample
   Public Shared Sub Main()
      Dim e1 As Int64 = 4,           e2 As Int64 = -4
      Console.WriteLine(e1.CompareTo(e2))
      Console.WriteLine(e1.CompareTo(CObj(e2)))
   End Sub 'Main

End Class

   
  
Related examples in the same category
1.Value type and Reference typeValue type and Reference type
2.A custom function to return inches from passed in centimeter value
3.Compare two boolean values
4.Compare two Byte values
5.Compare two Int16 numbers
6.Compare two Int32 values
7.Compare two Decimal values
8.Compare two Single values
9.Compare two Double values
10.Compare two Char values
11.Compare two string values
12.Compare two DateTime values
13.Compare two TimeSpan values
14.Compare two Version values
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.