It's all about the way you walk...
It doesn't matter.
VB interprets 0 as False and ANYTHING else as TRUE!
1 AND 0 = FALSE
1 OR 0 = TRUE
1 AND 15 = TRUE
0 AND 15 = FALSE
42 OR 0 =TRUE
:D
Does that make sense?
So if:
VB Code:
InStr(Label2.Caption, "SSL + SET")
is greater than 0 then it's TRUE :)
Re: It's all about the way you walk...
Quote:
Originally posted by Wokawidget
It doesn't matter.
VB interprets 0 as False and ANYTHING else as TRUE!
1 AND 0 = FALSE
1 OR 0 = TRUE
1 AND 15 = TRUE
0 AND 15 = FALSE
42 OR 0 =TRUE
:D
Does that make sense?
So if:
VB Code:
InStr(Label2.Caption, "SSL + SET")
is greater than 0 then it's TRUE :)
VB Code:
Private Sub Command1_Click()
MsgBox 1 And 12 '( 1 And 1100 = 0
MsgBox 1 And 13 '( 1 and 1101 = 1
MsgBox 1 And 14 '( 1 and 1110 = 0
MsgBox 1 And 15 '( 1 and 1111 = 1
MsgBox 1 And 16 '( 1 and 10001 = 0
End Sub
I assume u agree to this ?
It does matter what u And with what ... ;)