View Single Post
Old 09-16-2020, 04:30 PM   #13
Human being with feelings
Coachz's Avatar
Join Date: Oct 2010
Location: Charleston, SC USA
Posts: 9,299

Originally Posted by nofish View Post
You first get the current value of projshowgrid, then you set the first bit of it (that's what the '&1' in the doc is saying) to 1 (on) by bitwise ORing it with 1 (binary ...000001) because
0 OR 1 == 1 and
1 OR 1 == 1
so it's set to 1 no matter of the previous state (the other bits stay the same because 1 OR 0 == 1 and 0 OR 0 == 0).

Sorry, Wiki probably does a better job explaining than me..
I see. Thanks nofish for taking the time to help me out. Have a great day !
Coachz is offline   Reply With Quote