Solved

Add new line to end of vb

Posted on 2013-06-20
2
313 Views
Last Modified: 2013-06-20
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
Comment
Question by:lrbrister
2 Comments
 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
Comment Utility
Dim outputData As String = (New [String](readBuff, 0, count) + vbCrLf)

Open in new window

0
 

Author Closing Comment

by:lrbrister
Comment Utility
Oh for...

Duh on me.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now