So, let's say, like what you said, we have this:
0, 0000, None
1, 0001, CanOpen
2, 0010, CanProcess
3, 0011, CanComplete
8, 1000, CanCancel
or
0, 0000, None
1, 0001, CanOpen
2, 0010, CanProcess
3, 0011, CanComplete
4, 0100, CanCancel
In the first case, CanComplete | CanCancel gives us 1011 and CanOpen |
CanProcess gives us 0011
In the second case, CanComplete | CanCancel gives us 0111, and CanOpen
| CanProcess gives us 0011
Of course, in the second case, None | CanComplete and CanOpen |
CanProcess will give us the same result: 0011
>>You have 3 in your top example and is why it's failing. It's 4, not 3.
Comment