For example MsgBox() the flag value you can add a combination e.g. YES/NO buttons the flag value would be 4096+4 (or 4100). If I create a function which allows a combination of values how would I work it out effectively. Because all I can think of is list the possible combination of values.
Obviously this example is pretty pointless, but I am wondering how MsgBox achieves it with so many possible combination's. Thanks
Update: Working Code.
If BitAND(44, 1) Then 1 is used
If BitAND(44, 2