bitwise operation doesn't work, what am I doing wrong?
- From: MikyMike <abcdef70@xxxxxxxxxxx>
- Date: Wed, 27 Dec 2006 20:26:46 -0500
Hi, I try to do a bitwise operation to see if Alignment containt
DT_LEFT, but it always return false. Anyone have an idea why this
doesn't work?
procedure TForm1.Button1Click(Sender: TObject);
Var Alignment : Cardinal;
begin
Alignment := DT_LEFT and DT_VCENTER;
If (Alignment And DT_LEFT) <> 0 Then Caption := 'yes' else Caption
:= 'no';
end;
.
- Follow-Ups:
- 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: Jamie
- Re: bitwise operation doesn't work, what am I doing wrong?
- Prev by Date: form inheritance problem
- Next by Date: Re: bitwise operation doesn't work, what am I doing wrong?
- Previous by thread: form inheritance problem
- Next by thread: Re: bitwise operation doesn't work, what am I doing wrong?
- Index(es):