Hi there,
In my VB project, I want to distinguish the character T from other characters. I also want to distinguish the character T (red) from T (black).
My code looks like this:
[CODE=vbnet]
For i = 0 To k
If Array1(i) = Color.Red And Array2(i) = "T" Then
Form2.Label15.T ext = Array3(i)
End If
Next i
[/CODE]
Now the strange thing that happens is, is that Form2.Label15.T ext is always filled when T is present, nomatter what color T is.
What's going on here? It seems like the ''And''-statement isn''t working!?
Cindy
In my VB project, I want to distinguish the character T from other characters. I also want to distinguish the character T (red) from T (black).
My code looks like this:
[CODE=vbnet]
For i = 0 To k
If Array1(i) = Color.Red And Array2(i) = "T" Then
Form2.Label15.T ext = Array3(i)
End If
Next i
[/CODE]
Now the strange thing that happens is, is that Form2.Label15.T ext is always filled when T is present, nomatter what color T is.
What's going on here? It seems like the ''And''-statement isn''t working!?
Cindy
Comment