Public Function XorValues( _ ByVal vOne As Variant _ , ByVal vTwo As Variant _ ) As Variant
XOR Var2 0 1 +----- Var1 0 | 0 1 1 | 1 0Examples:
XorValues(23, 45) = 58 XorValues(23, "A") = Chr$(0) + Chr$(86) XorValues("A", "B") = Chr$(3)See also:
XorValuesAlt Function OrValues Function EqvValues Function XorStrings Function XorStringWithKey Function StringCharactersBitwiseXorNumber Function XorValuesBenchmark SubroutinevOne: First of two values whose corresponding bits are to be operated upon.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.