<-- Previous || Up || Next -->

Not Value Function
Bitwise Class

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

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

Truth table:
      0 | 1
      1 | 0
    NotValue(23) = -24
    NotValue("A") = Chr$(190)
See also:
    NandValues Function
    NorValues Function
    FlipBit Function
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.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.