N
Nelson Wu
Hi
I have an enum type VehStatus defined in my VB.NET 2003 application as
Public Enum VehStatus
Appraisal
OnOrder
InStock
Pending
Sold
End Enum
Dim myVehStatus as VehStatus
When I was trying to set
myVehStatus = Nothing
it gave me value Appraisal instead of Nothing.
It seems Enum variable doesn't accept Nothing as its value.
If it doesn't accept nothing as its value, why doesn't IDE give me compile
error on statement
myVehStatus = Nothing (I have all options set ON).
Can anybody lighten me.
Thanks in advance.
Nelson Wu
I have an enum type VehStatus defined in my VB.NET 2003 application as
Public Enum VehStatus
Appraisal
OnOrder
InStock
Pending
Sold
End Enum
Dim myVehStatus as VehStatus
When I was trying to set
myVehStatus = Nothing
it gave me value Appraisal instead of Nothing.
It seems Enum variable doesn't accept Nothing as its value.
If it doesn't accept nothing as its value, why doesn't IDE give me compile
error on statement
myVehStatus = Nothing (I have all options set ON).
Can anybody lighten me.
Thanks in advance.
Nelson Wu