| - Binary Or

Top  Previous  Next

Syntax

<result> := (<longValue1> | <longValue2> [ | <longValue3..n> ])

Parameters

<longValue1..n>

 

The values given must be LONGs.

Resulting Code

A call combining all <longValues> with a binary OR operation. The result is another LONG value.

Description

The | macro is resolved by a call to the BitOr function. It is provided to facilitate porting of C code. To prevent ambiguities with the native Xbase++ | codeblock-operator, brackets must be put around all values to be combined with the OR operation.

Classification

Core

Category

Binary operation macros

Quick Info

Library: cckptcor.lib / cckptcor.dll

Header: cmacros.ch

See also

BitOr

Example

 

#INCLUDE "CockpitCoreLibs.ch"

#INCLUDE "cmacros.ch"

 

FUNCTION Main

 

* This will display the value 11

? (1 | 3 | 8)

 

RETURN NIL