Solved

Add new line to end of vb

Posted on 2013-06-20
2
321 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 75

Accepted Solution

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

Open in new window

0
 

Author Closing Comment

by:lrbrister
ID: 39263839
Oh for...

Duh on me.
0

Featured Post

Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

691 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