Get values from type.enumerated?
Is it possible to extract the values? e.g. so I can use them in say a foreach loop?
2 Replies
I think that is possible, but I don't remember how. I guess the easier way would be
Yeah, @TizzySaurus's suggestion is best in terms of clarity and probably a good idea from a design perspective as well.
However, if you really need the literal values and can't define them beforehand, you could do something like this: