Guest User

Untitled

a guest
Aug 4th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     Private Function writerGenerate() As Boolean
  2.         Dim s As String = ""
  3.         Dim i As Integer
  4.         myThread.Sleep(100)
  5.         Do
  6.             Application.DoEvents()
  7.             If (arrayCount(buffer) >= msgsSend) Then
  8.                 isWriter = False
  9.                 For i = 0 To arrayCount(buffer)
  10.                     s &= buffer(i)
  11.                     If (i <> (arrayCount(buffer) - 1)) Then
  12.                         s &= ChrW(10)
  13.                     End If
  14.                 Next i
  15.                 DisplayText(s & vbCrLf)
  16.                 Send(s)
  17.             Else
  18.                 srvConfig.Items.Add("test")
  19.                 buffer(arrayCount(buffer)) = Rnd()
  20.             End If
  21.             myThread.Sleep(100)
  22.             Application.DoEvents()
  23.             '    'txtSend.Text = Rnd()
  24.        Loop Until (isWriter = False)
  25.     End Function
Add Comment
Please, Sign In to add comment