~ Binary Not

Top  Previous  Next

Syntax

<result> := ~ <longValue>

Parameters

<longValue>

 

The value given must be LONG.

Resulting Code

A call applying a binary NOT operation to <longValue>. The result is another LONG value.

Description

The ~ macro is resolved by a call to the BitNot function. It is provided to facilitate porting of C code.

Classification

Core

Category

Binary operation macros

Quick Info

Library: cckptcor.lib / cckptcor.dll

Header: cmacros.ch

See also

BitNot

Example

 

#INCLUDE "CockpitCoreLibs.ch"

#INCLUDE "cmacros.ch"

 

FUNCTION Main

 

* This will display the value 11

? (1 | 3 | 8)

 

RETURN NIL