Solved

Add new line to end of vb

Posted on 2013-06-20
2
316 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 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

820 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