By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,290 Members | 1,263 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,290 IT Pros & Developers. It's quick & easy.

Delcaring CONSTANT.... IN VB.Net

P: n/a
How to declare a CONSTANT as part of the CLASS?

VB.Net .Net Framework 1.1.

-Pete


Feb 9 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Pete Smith wrote:
How to declare a CONSTANT as part of the CLASS?

VB.Net .Net Framework 1.1.

-Pete


Const VariableName as VariableType
Feb 9 '06 #2

P: n/a

"Pete Smith" <Pe*********@hotmail.com> wrote in message
news:uD*************@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

Feb 9 '06 #3

P: n/a
Thank you to both.
-Pete
"_AnonCoward" <ab****@uvwxyz.com> wrote in message
news:i1******************@southeast.rr.com...

"Pete Smith" <Pe*********@hotmail.com> wrote in message
news:uD*************@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

Feb 10 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.