
Originally Posted by
The Fire Snake
I was expecting the output of the message box to be "param1 = 1". Thanks for the info on the ToString method in regards to enums. That can certainly come in handy.
Well in that case what you were doing was technically correct (with option strict off), but still I wouldn't recommend it. With option strict on by the way you should have made the call differently, like so:
Code:
TestEnum(CInt(Greetings.Hi))
But if you do that, you loose all the advantages of having an enum in the first place! You could just as well use in integer in that case.