Delcaring CONSTANT.... IN VB.Net

  • Thread starter Thread starter Pete Smith
  • Start date Start date
: 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top