vbnet New Line Replace

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
	Dim Delimiter As String = TextBox1.Text
	Dim Data As String = TextArea1.Value
	TextArea2.Value = Replace(Data, Delimiter, Delimiter & vbCrLf)
End Sub
Replaces delimited text with a new line - very useful for splitting CSV/SQL Queries. This can be seen in action at beta.slickhouse.com

Updated: Thursday 7th October 2010, 10:58pm

There are 0 comments

Leave a comment of your own

Comments are currently closed.