Function Bitwise Class

NotValue

Perform the logical "Not" operation on the corresponding bits of a value. Can be used for simple encoding and decoding of Strings.

Signature (Visual Basic / VBA)

Public Function NotValue( _
    ByVal vOne As Variant _
    ) As Variant

Code Examples

    NotValue(23) = -24
    NotValue("A") = Chr$(190)
    NOT
        +---
      0 | 1
      1 | 0

Parameters

Parameter Description
vOne Value whose bits will be transformed with the "Not" operation. Function returns Null if vOne is Null. Function returns Empty if vOne is Empty. Otherwise, the function returns the same type of value as vOne.