• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 330
  • Last Modified:

Add new line to end of vb

How can I add a new line onto the underlined code below?

        Dim count As Integer = streamRead.Read(readBuff, 0, 2560)

        Debug.WriteLine(ControlChars.Cr + "Characters Returned " + CStr(count))
        If count = 0 Then
            GoTo Resend
        Else
            While count > 0
                Dim outputData As New [String](readBuff, 0, count)
                Debug.WriteLine(ControlChars.Cr + "The contents of the returned data are :  ")
                Debug.WriteLine(ControlChars.Cr + outputData)
                Me.rtbXmlData.Text = outputData
                Threading.Thread.Sleep(200)
                count = streamRead.Read(readBuff, 0, 2560)
            End While
        End If
0
lrbrister
Asked:
lrbrister
1 Solution
 
käµfm³d 👽Commented:
Dim outputData As String = (New [String](readBuff, 0, count) + vbCrLf)

Open in new window

0
 
lrbristerAuthor Commented:
Oh for...

Duh on me.
0

Featured Post

Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now