C
Charles Law
Hi Guys
I'm sure there is a plausible explanation for this, but ...
<code>
Public Enum Test
Abra = 5
Cadabra = 76
End Enum
Dim t as Test
t = Test.Cadabra
</code>
At the end of this I expect t to contain 76, but it doesn't. It contains
Cadabra.
In the command window, I get the following
?t
Cadabra
Alternatively,
?CInt(t)
76
Why do I have to explicitly convert to Int? After all, I thought this was
just a good way to get the intellisense to prompt me with values for t when
I type
t =
Can anyone explain?
TIA
Charles
I'm sure there is a plausible explanation for this, but ...
<code>
Public Enum Test
Abra = 5
Cadabra = 76
End Enum
Dim t as Test
t = Test.Cadabra
</code>
At the end of this I expect t to contain 76, but it doesn't. It contains
Cadabra.
In the command window, I get the following
?t
Cadabra
Alternatively,
?CInt(t)
76
Why do I have to explicitly convert to Int? After all, I thought this was
just a good way to get the intellisense to prompt me with values for t when
I type
t =
Can anyone explain?
TIA
Charles