Define and use Const value : Const « Language Basics « VB.Net






Define and use Const value

Define and use Const value
Imports System

Public Class MainClass
    Private Const strFileName As String = "test.txt"
    Shared Sub Main()
        System.Console.WriteLine(strFileName)

    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.String Const DemoString Const Demo
4.Define and use ConstDefine and use Const