Re: decimal to binary

"Rory Daulton" <[email protected]> Thu, 14 Aug 2003 20:15:42 -0400
Newsgroups gmane.comp.lang.delphi.programming
Message-ID <000901c362c2$5d9bb990$6401a8c0@laptop>
Michael,

> >   CheckBox0.Checked := MyNumber and (2 shl 0);
> Shouldn't that expression be 'MyNumber and (1 shl N)', with a 1 instead of
2?

Yes, you are right.  I made that very mistake once in some of my code a
couple of years ago, so I should have remembered that.  Thanks for the
correction.

Rory Daulton
[email protected]


---
[This E-mail scanned for viruses by Declude Virus and Nmax "Your MAXimum Connection!"]
[This E-mail scanned for spam by Declude JunkMail and Nmax "Your MAXimum Connection!"] 


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/i7folB/TM
---------------------------------------------------------------------~->

CodeCoffer - new Delphi code protection Tool!
http://www.delphicollection.com/public/CodeCoffer.htm
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
--------------------------------------------------------------- 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/