N
Nikolay Petrov
Let's say I have an Enum
Enum Items
Item1 = 0
Item2 = 1
Item3 = 2
Item4 = 4
End
and I have a method which accepts this Enum as parameter:
Sub Test(byval Item as Items)
'Code
End Sub
Is it possbile to provide an integer value, corresponding to the Enumeration
index?
Like: Test(3)
Of course I get an error in IDE,if Option Strict is On, so how to convert
this intger to the corresponding Enum?
TIA
Enum Items
Item1 = 0
Item2 = 1
Item3 = 2
Item4 = 4
End
and I have a method which accepts this Enum as parameter:
Sub Test(byval Item as Items)
'Code
End Sub
Is it possbile to provide an integer value, corresponding to the Enumeration
index?
Like: Test(3)
Of course I get an error in IDE,if Option Strict is On, so how to convert
this intger to the corresponding Enum?
TIA