Results 1 to 3 of 3

Thread: winsock.getdata

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2006
    Posts
    5

    winsock.getdata

    i know this is stupid but it has been a while. how do i put the incoming data into two strings. the data that is incoming on the server that looks like this

    text1.text & "," & text2.text

    i have the two strings setup on the server

    dim sock1str1 as string
    dim sock1str2 as string

    what is the syntax for the winsock.getdata
    thanks

  2. #2
    Addicted Member
    Join Date
    Mar 2005
    Posts
    205

    Re: winsock.getdata

    Get the data like normal then split it in 2 (data1 = mid(data,instr(data,",") ... etc
    If you can’t help, dont change the subject with useless questions about the problem

  3. #3
    New Member
    Join Date
    Mar 2006
    Posts
    10

    Re: winsock.getdata

    In the Data_Arrival event:
    VB Code:
    1. Dim strData as String
    2. Dim AryData() as String
    3.  
    4. Winsock.GetData strData, vbString
    5.  
    6. AryData = Split(strData, ",")
    7.  
    8. Text1.Text = AryData(0)
    9. Text2.Text = AryData(1)

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