Hi,
Is it possible to declare an enum and then declare a variable of the enum
type.
Public Class SessionVars
Inherits Object
Public Shared strGroupName As String
Public Shared strPracticeName As String
Public Shared mode As Modes
<------------------------------*******ERROR*******
Public Sub New()
MyBase.new()
End Sub
Protected Enum Modes As Integer
ModeAdd = 1
ModeEdit = 2
ModeView = 3
End Enum
End Class
I would like to be able to write in code
SessionVars.mode = Modes ModeAdd --and have intellisense pop the modes
up for me.
can anybody help me out or point me in the correct direction???
any help is appreciated.
cheers
martin.