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

Nand Values Function
Bitwise Class

Public Function NandValues( _
      ByVal vOne As Variant _
    , ByVal vTwo As Variant _
    ) As Variant

"Binary Not And"
Perform the logical "Nand" ("Not And") operation on the corresponding bits from two values.

Truth table:
    NAND    Var2
             0 1
           +-----
    Var1 0 | 1 1
         1 | 1 0
Examples:
    NandValues(23, 45) = -6
    NandValues(23, "A") = Chr$(255) + Chr$(254)
    NandValues("A", "B") = Chr$(191)
See also:
    AndValues Function
    NorValues Function
vOne: First of two values whose corresponding bits are to be operated upon.
vTwo: Second of two values whose corresponding bits are to be operated upon.
Note: This function uses the FixUpBitwiseArguments function to decide how the bits within the two values should be coerced to Strings then aligned.

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