Results 1 to 3 of 3

Thread: Winsock recieve data help [Resolved]

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    4

    Winsock recieve data help [Resolved]

    my code works, but i want to add something to it

    Code:
    Private Sub Winsock_DataArrival(ByVal bytesTotal As Long)
    
    Dim strData As String
    
        ' get the data and display it in the textbox
    
        Winsock.GetData strData
    
        txtMain.Text = txtMain.Text & vbCrLf & "Client: " & strData
    
        txtMain.SelStart = Len(txtMain.Text)
    
    End Sub
    i want to make it take the first two words of the string, and have the first go into one variable and the second go into another, then all words after the first two get put in yet another variable. how would i go about doing this?

    edit: i also want it to still put all of the string into the text box.
    Last edited by camman977; Apr 28th, 2005 at 03:32 PM.

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