Define Integer constant : Const « Class Module « VB.Net Tutorial






Module Module1
    Sub Main( )
       Const FreezingPoint As Integer = 32 
       Const BoilingPoint As Integer = 212

       System.Console.WriteLine("Freezing point of water: {0}", FreezingPoint)
       System.Console.WriteLine("Boiling point of water: {0}", BoilingPoint)

    End Sub
 End Module
Freezing point of water: 32
Boiling point of water: 212








6.26.Const
6.26.1.Use Const to define constant
6.26.2.Define Integer constant