|
-
Jun 15th, 2005, 11:48 PM
#1
Thread Starter
New Member
Winsock Array Problem
Im trying to make a server application and having a browser access it and send data back to it. But that aint the problem. Im trying to use an Array to gather the get information and deal with it in a for loop. Iv never done this and am trying my best at it and not gettin far with this. Is there a way to fix/get around/another way to do this?
This seems to cause an error
Run-time Error '13'
Type Mismatch
VB Code:
wsWWW.GetData sData, vbString
wsArray = Split(sData, vbCrLf)
Thanks in advance, Phreak Nation
-
Jun 20th, 2005, 03:53 PM
#2
Retired VBF Adm1nistrator
Re: Winsock Array Problem
Which line is causing the error? How is sData declared?
How is wsArray declared?
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Jun 20th, 2005, 08:03 PM
#3
Thread Starter
New Member
Re: Winsock Array Problem
LoL funny thing is i think i solved it and i dont remember how, both lines are still identical and are declared the same. Here is what i am using to save people the trouble in the future
VB Code:
Dim wsArray() As String
Private Sub wsWWW_DataArrival(ByVal bytesTotal As Long)
Dim sData As String
wsWWW.GetData sData, vbString
wsArray = Split(sData, vbCrLf)
For i = 0 To UBound(wsArray)
If Len(wsArray(i)) > 0 Then
' Connection Script
End If
Next i
End Sub
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
|