W
Wlliam Cornwill
Hi,
In VB6 you could declare and enumeration with spaces using the [enum
value] type syntax.
I am now trying to implement an enum in VB.NET using this syntax and I
am having an issue.
Public Enum myEnum
EnumWithoutSpaces
[Enum With Spaces]
End Enum
Private Sub (ByVal a As myEnum)
Select Case a
Case myEnum.EnumWithoutSpaces
'Do Something
Case myEnum.[Enum With Spaces]
'Do Something Else
End Select
End Sub
I get the message "Identifier expected." at compile time. Any help
would be appreciated.
Regards,
William
In VB6 you could declare and enumeration with spaces using the [enum
value] type syntax.
I am now trying to implement an enum in VB.NET using this syntax and I
am having an issue.
Public Enum myEnum
EnumWithoutSpaces
[Enum With Spaces]
End Enum
Private Sub (ByVal a As myEnum)
Select Case a
Case myEnum.EnumWithoutSpaces
'Do Something
Case myEnum.[Enum With Spaces]
'Do Something Else
End Select
End Sub
I get the message "Identifier expected." at compile time. Any help
would be appreciated.
Regards,
William