|
|
| SetBit | ||
| Result = SetBit(Value, BitNo) | ||
| Parameters: Value = An integer value BitNo = The bit you want to set (0 = least significant bit) |
||
| Returns: Result |
||
SetBit sets a specified bit of a given state (on/off). Bits range between 0 and 31. 0 being the least significant bit (LSB), 31 is the most significant bit (MSB). FACTS: * If the specified bit is already set SetBit will not change it. * SetBit is equivalent of Result=Value or (2 ^ BitNo) Mini Tutorial: Showing the effect of SetBit
This example would output.
|
| Related Info: | And | ClearBit | Or | SwapBit | TestBit | Xor : |
|
|
|||||||||||||||||||||||||||||||||||||||
|
(c) Copyright 2002 - 2026 - Kevin Picone - PlayBASIC.com |