Home All Groups Group Topic Archive Search About

Delcaring CONSTANT.... IN VB.Net

Author
9 Feb 2006 7:06 PM
Pete Smith
How to declare a CONSTANT as part of the CLASS?

VB.Net .Net Framework 1.1.

-Pete

Author
9 Feb 2006 7:32 PM
Chris
Pete Smith wrote:
> How to declare a CONSTANT as part of the CLASS?
>
> VB.Net .Net Framework 1.1.
>
> -Pete
>
>
>
>

Const VariableName as VariableType
Author
9 Feb 2006 7:49 PM
_AnonCoward
"Pete Smith" <PeteSmit***@hotmail.com> wrote in message
news:uDEu8uaLGHA.604@TK2MSFTNGP14.phx.gbl...
: How to declare a CONSTANT as part of the CLASS?
:
: VB.Net .Net Framework 1.1.
:
: -Pete

Public Class MyClass

  Private Const MyPrivateConstant As Integer = 100
  Public Const MyPublicConstant As String = "Hello!"

  [...]

End Class
Author
9 Feb 2006 11:49 PM
Pete Smith
Thank you to both.
-Pete
Show quoteHide quote
"_AnonCoward" <abc***@uvwxyz.com> wrote in message
news:i1NGf.11476$915.5772@southeast.rr.com...
>
> "Pete Smith" <PeteSmit***@hotmail.com> wrote in message
> news:uDEu8uaLGHA.604@TK2MSFTNGP14.phx.gbl...
> : How to declare a CONSTANT as part of the CLASS?
> :
> : VB.Net .Net Framework 1.1.
> :
> : -Pete
>
> Public Class MyClass
>
>   Private Const MyPrivateConstant As Integer = 100
>   Public Const MyPublicConstant As String = "Hello!"
>
>   [...]
>
> End Class
>
>
>