Egad! Try this, the intent is clearer, and the code produced by the compiler is identical... If(Bits & ( 1 << 7 )) Jason Davidson wrote: > If(Bits & 128) //Hex 0x80 > > From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED]]On Behalf Of Zach Austin > Sent: Monday, August 14, 2000 1:24 PM > To: Palm Developer Forum > Subject: bits > > If I have a byte how do I check if, for instance, bit 7 is set? Thanks in > advance for helping a newbie. > -- Adam Wozniak Senior Software Design Engineer Surveyor Corporation [EMAIL PROTECTED] 4548 Broad Street [EMAIL PROTECTED] San Luis Obispo, CA 93401 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
