Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Fast Library For Clipper 3.02 Reference - <b>setbit()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
    SetBit()

         Activates a selected bit from a byte

    Syntax:

         SetBit ( cByte, nBitPos ) -> cNewByte

         cByte   : The byte to treat.
         nBitPos : The position of the bit inside the byte.

    Description:

         Puts to 1 a selected bit from a byte returning the new byte.

    Return:

         The new byte or Nil if cByte is not a character or nBitPos is
         not numeric.

    Example:

         cNewByte := BitBorra ( "C", 2 )

See Also: DelBit() IsBit()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson