xHarbour Reference Documentation > Function Reference |
Performs a bitwise OR operation with numeric integer values.
HB_BitOr( <nInteger1>, <nInteger2> ) --> nResult
The function returns a numeric value. It is the result of the bitwise OR operation with both parameters.
The function performs bitwise OR operation with two integer values. It compares individual bits of both values at the same position. If bits at the same position are set in either value, the bit at this position is also set in the return value. The bit in the return value is not set when the bits of both values at this position are not set.
See also: | | (bitwise OR), HB_BitAnd(), HB_BitIsSet(), HB_BitNot(), HB_BitXOr() |
Category: | Bitwise functions , xHarbour extensions |
Source: | rtl\hbBitf.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
http://www.xHarbour.com