I am trying to understand how XOR works. Why is this equal to 25?
Just testing this:Code:MsgBox 77 Xor 84
Code:Public Sub Main() Dim intFix As Integer intFix = Fix(256 * Rnd) Range("A1").Value = intFix Dim intAsc As Integer intAsc = Asc(Mid$("Test", 1, 1)) Range("A2").Value = intAsc Range("A3").Value = intFix Xor intAsc MsgBox 77 Xor 84 End Sub




Reply With Quote