Initialize A System.Enum Variable in Studio

Hi everyone,

I recently learned about the System.Enum datatype, and I think it would be very helpful for organizing results for some of my projects. In “normal” VB code, I think the initialization would look something like this:

Enum itemStatus
Successful
Failed
Skipped
End Enum

However, I’m having trouble figuring out how to initialize a System.Enum variable in Studio. Is there some way I could do this with an Assign, an Invoke Method, or another activity (other than Invoke Code)? Thank you!

P. S. I found another post on the forum where someone was asking for help creating an Enum, but all of the responses were confused and thought OP was talking about creating an IEnumerable. That is not what I’m looking for.

1 Like