Re: bitwise operation doesn't work, what am I doing wrong?




MikyMike wrote:
Oh My God! Sorry Rob and Terry, I just saw the problem, you're true I
can't verify the DT_LEFT since it's zero. I must verify the other
ones, then if the others are not set, them assume it's DT_LEFT.

Another way to do this is :
const
DT_HORZ_LIGN = DT_LEFT or DT_CENTER or DT_RIGHT;

case (Alignment and DT_HORZ_ALIGN) of
DT_LEFT : ....
DT_CENTER : ....
DT_RIGHT : ...
end;

--
Marc

.



Relevant Pages

  • Re: *nix advice for assignment
    ... > verify the commands I have written below. ... How can you tell if a command successfully completed? ... but quits when a zero is found. ... An 'if' construct may be part of the shell script you are requested ...
    (comp.unix.shell)
  • Re: bitwise operation doesnt work, what am I doing wrong?
    ... MikyMike wrote: ... can't verify the DT_LEFT since it's zero. ... that will mask out all other bits leaving behind only ...
    (alt.comp.lang.borland-delphi)
  • Re: Converting negative integer to octal/hexadecimal
    ... verify the sum is zero. ... They never stop thinking about new ways to harm our country ...
    (comp.lang.c)
  • Re: *nix advice for assignment
    ... > verify the commands I have written below. ... How can you tell if a command successfully completed? ... but quits when a zero is found. ... echo out that it is exiting because the zero was ...
    (comp.unix.shell)
  • Re: FLTMA: Verification of "large zero"
    ... > from Hanford Carr) one might well wonder where Doug Goncz dreamt up ... I wasn't looking at cubic exponent residues at all. ... In this case Shas a zero S.546. ... Can anyone here verify as expected that ...
    (sci.math)