S
switch
I've seen code where people pass in 'attributes' by using the | operator.
Like MULTI | TRANSPARENT | EDITABLE
I want to use this kind of thing in my own code, and I know you need to set
up each constant to be 1,2,4,8,16, etc, but my question is, given a value,
how do I test if an attribute is set ?
Like MULTI | TRANSPARENT | EDITABLE
I want to use this kind of thing in my own code, and I know you need to set
up each constant to be 1,2,4,8,16, etc, but my question is, given a value,
how do I test if an attribute is set ?