I'm playing with logical Bit-Operations. I know a DWord or Integer on a 32bit Platform contains 32bit. Therefore i could pack up to 32 "booleans" into a DWord.
But yet, i was not successful to set a bit
i tried something like making constants like
MASK_01 = $00000001
MAX_10 = $0000000A
and a Flag-Variable:
to set a bit, i tried:
Flags := (Flags and MASK_01);
shouldn't that set a bit ?
but when i look at the value of Flags after that, it's still 0
how do i correctly set and clear bits within a DWord ?