Use Const to define constant : Const « Class Module « VB.Net Tutorial






Module Module1

    Sub Main()
        Const Pi = "3.1415926535"
        Console.WriteLine(Pi)
    End Sub

End Module
3.1415926535








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