"Emile van Sebille" <emile at fenx.com> wrote in message news:06c201bf7441$9b05ad40$01ffffc0 at worldnet.att.net... > I often set 'bit' style flags in integers, but leave them as > integers. e.g., add 2^5+2^3+2^2 to an int to turn on bits > 5,3,2 (or 4,2,1) Except when starting from 0, you need to 'or' the bits to set them, not add.