String Const Demo : Const « Language Basics « VB.Net





String Const Demo

String Const Demo
Imports System

Public Class MainClass

    Public Const AConst As String = "String"

    Shared Sub Main(ByVal args As String())

       Console.WriteLine(AConst)

    End Sub
    

End Class

           
       










Related examples in the same category

1.Const Variable for ConstantConst Variable for Constant
2.Const Variable in a FunctionConst Variable in a Function
3.Define and use ConstDefine and use Const
4.Define and use Const valueDefine and use Const value