I've come across the following issue with enumerations:
Can anyone explain why this is allowed to happen and if there is a way to prevent it?Code:Public Enum Figures test1 = 1 test2 = 2 End Enum Dim fig As Figures 'this works fine (as it should) fig = Figures.test1 'but this also works even though its not a valid enumeration value! fig = 4
Thanks




Reply With Quote