xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

NumOR()

Performs a bitwise OR for a list of integer values.

Syntax

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

Arguments

<nInteger1>...<nIntegerN>
A comma separated list of numeric 32-bit integer values must be passed. A minimum of two parameters 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 the bits of all parameters, and returns the result as a numeric integer value.

Info

See also:| (bitwise OR), IsBit(), NumAND(), NumNOT(), NumOrX(), NumXOR(), SetBit()
Category: CT:NumBits , Bitwise functions , Numbers and Bits
Source:ct\bit1.c
LIB:xhb.lib
DLL:xhbdll.dll


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