- Код: Выделить всё
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim Data As String
Winsock1.GetData Data
Text1.Text = Data
End Sub
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim Data As String
Winsock1.GetData Data
Text1.Text = Data
End Sub
Dim tmp As String
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim Data As String
Winsock1.GetData Data
tmp = tmp & Data
If Right(tmp, 1) = vbNullChar Then Text1.Text = tmp: tmp = ""
End Sub
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim Data As String
Winsock1.GetData Data
tmp = tmp & Data
'If Right(tmp, 1) = vbNullChar Then
Text1.Text = tmp
End Sub
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim Data As String
Winsock1.GetData Data
Text1.Text = Text1.Text + Data
End Sub
SendMessage Text1.hwnd, WM_SETTEXT, ByVal 0&, ByVal Data
ByVal bytesTotal As Long
sss = CStr(Len(sss)) & vbCrLf & sss
WS.SendData sss
next_i = 1: bExit = False
While Not bExit
i = InStr(next_i, sData, vbCrLf)
If i = 0 Then Exit Sub
CRC = Val(Trim(Mid(sData, next_i, i)))
If CRC = 0 Then Exit Sub
Our_string=(Mid(sData, i + 2, CRC))
next_i = i + 2 + CRC
If CRC > Len(sData) Then Exit Sub
Wend
Сейчас этот форум просматривают: AhrefsBot и гости: 87