Another way I sometimes use is to declare a dictionary. Like:
Dim oenum
set oEnum = CreateObject ("scripting.Dictionary")
And when initializing the thread / application, I populate it with the values ββthat I like to use, also I have to use an enumeration.
So:
oEnum.Add 0, "Enum1"
oEnum.Add 1, "Enum2"
In a place in the code that I like to use enumeration, I call this dictionaryobject as follows: someval = oEnum.Items () (index) -> an index is kind of like an enumeration method.
Grz John
source share