Let's start simple:
Gives True
Gives True
Gives True, so now
Gives False :-(, why?
but:
is True - weird!
Had enough? Try this:
Anybody cares to explain...
---- Andy
There is a great need for a sarcasm font.
Code:
If True Then
MsgBox True
Else
MsgBox False
End If
Code:
If 1 Then
MsgBox True
Else
MsgBox False
End If
Code:
If 8 Then
MsgBox True
Else
MsgBox False
End If
Code:
If 1 And 8 Then
MsgBox True
Else
MsgBox False
End If
but:
Code:
If 2 And 7 Then
MsgBox True
Else
MsgBox False
End If
Had enough? Try this:
Code:
If CBool(1) And CBool(8) Then
Debug.Print CBool(1)
Debug.Print CBool(8)
MsgBox True
Else
Debug.Print CBool(1)
Debug.Print CBool(8)
MsgBox False
End If
Anybody cares to explain...
---- Andy
There is a great need for a sarcasm font.