?
Solved

Add new line to end of vb

Posted on 2013-06-20
2
Medium Priority
?
324 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 2000 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

How To Reduce Deployment Times With Pre-Baked AMIs

Even if we can't include all the files in the base image, we can sometimes include some of the larger files that we would otherwise have to download, and we can also sometimes remove the most time-consuming steps. This can help a lot with reducing deployment times.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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 video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

801 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