ppinky
Newbie level 3
Hi all,
I am new to vb programming
Can anyone help me debug the following code?
Private Sub MSComm1_OnComm()
Print MSComm1.Input
If MSComm1.Input = A Then
Print "Hello"
ElseIf MSComm1.Input = B Then
Print "World"
End If
End Sub
I am getting the answer as..
B
Hello
But the expected answer is..
B
World
Thanks in advance..
I am new to vb programming
Can anyone help me debug the following code?
Private Sub MSComm1_OnComm()
Print MSComm1.Input
If MSComm1.Input = A Then
Print "Hello"
ElseIf MSComm1.Input = B Then
Print "World"
End If
End Sub
I am getting the answer as..
B
Hello
But the expected answer is..
B
World
Thanks in advance..