Quote Originally Posted by RunsWithScissors View Post
While ThomasJohnsen indicated one option for ACCCESING the value of the variable flags, it seems to me you are overcomplicating things a bit.
I'm afraid there is no straight forward way of representing multiple flags into a single variable with one or more of the flags being turned on or off. While your example is textbook description of enum, it dosen't solve the opening posters problem of needing to assign multiple flagvalues.

For instance the assignment:

Code:
    Dim flags as FlagType = FlagType.Docs Or FlagType.Email
(from the first post) would effectively set flags = FlagType.Web (3 = 2 Or 1) using the enum-values you assigned. This would yield some unexpected results, I'm sure.

Regards Tom