Signature (Visual Basic / VBA)
Public Function AndValues( _
ByVal vOne As Variant _
, ByVal vTwo As Variant _
) As Variant
Code Examples
AndValues(23, 45) = 5
AndValues(23, "A") = Chr$(0) + Chr$(1)
AndValues("A", "B") = Chr$(64) = "@"
AND Var2
0 1
+-----
Var1 0 | 0 0
1 | 0 1
Parameters
| Parameter | Description |
|---|---|
| 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. |
Notes & Version History
| Note | This function uses the FixUpBitwiseArguments function to decide how the bits within the two values should be coerced to Strings then aligned. |