J
John A Grandy
how to iterate through the members of an Enum ?
Enum EnumAction
None = 0
Action1 = 1
Action2 = 2
Action3 = 3
Action4 = 4
End Enum
Dim vAction As EnumAction
For Each vAction In Enum1 ....
Next vAction
triggers error " 'EnumAction' is a type and cannot be used in an expression
"
Enum EnumAction
None = 0
Action1 = 1
Action2 = 2
Action3 = 3
Action4 = 4
End Enum
Dim vAction As EnumAction
For Each vAction In Enum1 ....
Next vAction
triggers error " 'EnumAction' is a type and cannot be used in an expression
"