Const Statement
[accessmodifier
] Constconstantname
[Astype
] =constantvalue
accessmodifier
optional; KeywordOne of the keywords Public
,
Private
, Protected
,
Friend
, or Protected
Friend
.
constantname
required; String LiteralThe name of the constant.
type
optional; KeywordThe data type; it can be Byte
,
Boolean
, Char
,
Short
, Integer
,
Long
, Single
,
Double
, Decimal
,
Date
, or String
, as well as any
of the data types defined in the Base Class Library.
constantvalue
required; Numeric or StringA literal, constant, or any combination of literals and constants
that includes arithmetic or logical operators, except
Is
.