Re: decimal to binary
Michael Kjorling <[email protected]> Fri, 15 Aug 2003 01:16:49 +0200 (CDT)
| Newsgroups | gmane.comp.lang.delphi.programming |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Aug 14 2003 19:13 -0400, Rory Daulton wrote: > As for the check boxes, the simplest way is: > CheckBox0.Checked := MyNumber and (2 shl 0); > CheckBox1.Checked := MyNumber and (2 shl 1); > > CheckBox7.Checked := MyNumber and (2 shl 7); Shouldn't that expression be 'MyNumber and (1 shl N)', with a 1 instead of 2? Michael Kjörling - -- Michael Kjörling :: [email protected] :: SMÃYBY JO89 ^..^ PGP: 3723 9372 c245 d6a8 18a6 36ac 758f 8749 bde9 ada6 \/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQE/PBhkdY+HSb3praYRAgz7AJ97n3RAfdUJPWFaia/C4J9SXzSETwCgpOa5 9Jw2LXscFEAnFwF+3quqeHM= =MOop -----END PGP SIGNATURE----- ------------------------ 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/