I want to be able to clear SOLID_TOP from properties and still have SOLID_BOTTOM left in it. How do I do this? Thanks for any help.
[edited by - ITH3 on March 16, 2003 6:27:33 PM][edited by - ITH3 on March 16, 2003 6:28:14 PM]

0

Share this post

Link to post

Share on other sites

EDIT: Thought I should give some reasons. If FLAG_I_DONT_WANT has a bit set, when you inverse it, everything BUT that bit is now set. When you AND it with myFlag, everything is one, except the bit you don't want, which is 0. That will eliminate your bit from the flag.