xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

NumOrX()

Performs a bitwise OR for a list of integer values.

Syntax

NumOR( <nMaxBits>, ;
       <nInteger1|cHex1> , <nInteger2|cHex2> , ;
       [<...nIntegerN|cHexN>]) --> nInteger

Arguments

<nMaxBits>
This numeric value specifies the number of bits to use in the operation, beginning with the least significant bit (LSB). The value of <nMaxBits> must be in the range between 1 and 32.
<nInteger1>...<nIntegerN>
A comma separated list of numeric integer values must be passed. A minimum of two integers is required.
<cHex1>...<cHexN>
Alternatively, the integers can be passed as hex-encoded character strings (see NumToHex()).

Return

The function performs a bitwise OR operation with <nMaxBits> bits of all parameters, and returns the result as a numeric integer value.

Info

See also:| (bitwise OR), IsBit(), NumAndX(), NumNotX(), NumOR(), NumXorX(), SetBit()
Category: CT:NumBits , Bitwise functions , Numbers and Bits , xHarbour extensions
Source:ct\bit3.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe