Results 1 to 2 of 2

Thread: Help with Parsing recieved data

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2005
    Posts
    1

    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

  2. #2
    Lively Member
    Join Date
    May 2005
    Posts
    90

    Re: Help with Parsing recieved data

    VB Code:
    1. dim mysplit(), str as string
    2. str = ".ieopen www.google.com"
    3. mysplit = split(str, " ")
    4. select case mysplit(0)
    5.      case ".ieopen"
    6.            Txturl.Text = mysplit(1)
    7. end select
    ^_^

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width