rajkavikumar
New Member
- Joined
- Oct 2, 2012
- Messages
- 20
Hello Friends I am trying to understand how I can use Hex in my if statement rather how below mtioned code is working in if condition.
I also checked in immediate window that
R AND P returns 2
and
R and T returns zero
but I don't understand that how this get calculated?
Code:
Sub test1()
Const T = &H1
Const P = &H2
Const D = &H20
R = P + D
If R And P Then
Debug.Print P
End If
If R And T Then
Debug.Print T
End If
End Sub
I also checked in immediate window that
R AND P returns 2
and
R and T returns zero
but I don't understand that how this get calculated?