Re: bitwise operation doesn't work, what am I doing wrong?
- From: "Terry Russell" <trochilus@xxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 29 Dec 2006 10:25:03 +1030
"Jamie" <jamie_ka1lpa_not_valid_after_ka1lpa_@xxxxxxxxxxx> wrote in message
news:tmYkh.263$c46.246@xxxxxxxxxxxxxxx
Just do this.
If (Alignment and DT_LEFT) = DT_LEFT then.....
that will mask out all other bits leaving behind only
the one you're looking for.
if it happens to be a zero value, that's fine, it will
still work this way because comparing 0 with 0 will = true.
If alignment = DT_LEFT (* nothing set *) then
else
x and 0 = 0 will always be true
eqivalanence not mask
.
- Follow-Ups:
- Re: bitwise operation doesn't work, what am I doing wrong?
- From: Terry Russell
- Re: bitwise operation doesn't work, what am I doing wrong?
- References:
- bitwise operation doesn't work, what am I doing wrong?
- From: MikyMike
- Re: bitwise operation doesn't work, what am I doing wrong?
- From: Rob Kennedy
- Re: bitwise operation doesn't work, what am I doing wrong?
- From: MikyMike
- Re: bitwise operation doesn't work, what am I doing wrong?
- From: Terry Russell
- Re: bitwise operation doesn't work, what am I doing wrong?
- From: MikyMike
- Re: bitwise operation doesn't work, what am I doing wrong?
- From: Jamie
- bitwise operation doesn't work, what am I doing wrong?
- Prev by Date: Re: Opendialog problem
- Next by Date: Re: Opendialog problem
- Previous by thread: Re: bitwise operation doesn't work, what am I doing wrong?
- Next by thread: Re: bitwise operation doesn't work, what am I doing wrong?
- Index(es):
Relevant Pages
|