Mega Code Archive

 
Categories / VB.Net Tutorial / Data Type
 

Define Integer variable and assign value

Module Module1     Sub Main( )        Dim myInt As Integer = 7        Console.WriteLine("Initialized myInt: {0}", myInt)        myInt = 5        Console.WriteLine("After assignment myInt: {0}", myInt)     End Sub  End Module Initialized myInt: 7 After assignment myInt: 5