|
-
May 19th, 2006, 07:06 PM
#1
Thread Starter
New Member
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
-
May 23rd, 2006, 09:18 AM
#2
Addicted Member
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
-
Jun 7th, 2006, 01:36 AM
#3
New Member
Re: winsock.getdata
In the Data_Arrival event:
VB Code:
Dim strData as String
Dim AryData() as String
Winsock.GetData strData, vbString
AryData = Split(strData, ",")
Text1.Text = AryData(0)
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|