UKmedia
Programmer
- Nov 2, 2002
- 90
Hey All,
I have an application that is receiving a reponse from another program. The program sends it's response as:
1=9
0=999
Now the reponse is not always the same and I want to use a select case to read the reponse.
Now I know what all the reponse codes are but in the Case "" if I put Case "3=999=0" it will not work as the data coming in is on 2 lines.
How can i split the data going in and show this inb each case.
Cheers
UKmedia productions
I have an application that is receiving a reponse from another program. The program sends it's response as:
1=9
0=999
Now the reponse is not always the same and I want to use a select case to read the reponse.
Code:
Dim strReceive
Winsock1.GetData strReceive
txtReceive.Text = strReceive
Select Case
Case strReceive
Case ""
lblResponse.Caption = "Good"
Case ""
lblResponse.Caption = "Bad"
Case ""
lblResponse.Caption = "Complete"
Case Else
lblResponse.Caption = "Unknown Response"
End Select
Now I know what all the reponse codes are but in the Case "" if I put Case "3=999=0" it will not work as the data coming in is on 2 lines.
How can i split the data going in and show this inb each case.
Cheers
UKmedia productions