Help with Parsing recieved data
Hello, i'm making a client and server type application, and i'm having trouble trying to do what I want. This is how it goes.
Once i'm connected I want to be able to send a message to the server and the server respond to this message. I want it to be able to do this.
When I say ".ieopen www.google.com" I want a textbox named txturl to display the www.google.com bit.
I've had a attempt at this and just can't grasp it.
I've tryed
Select Case mysplit(2)
Case ".ieopen"
Txturl.Text = mysplit(3)
End Select
PLEASE HELP
Re: Help with Parsing recieved data
VB Code:
dim mysplit(), str as string
str = ".ieopen www.google.com"
mysplit = split(str, " ")
select case mysplit(0)
case ".ieopen"
Txturl.Text = mysplit(1)
end select