A Able Feb 20, 2004 #1 Dear friends How do I by code identify linefeed in a string and delete it? Regards Able
C Charles Law Feb 20, 2004 #2 Hi Able Try stringContainingLinefeed.Replace(Convert.ToChar(&HA), String.Empty) HTH Charles
K Ken Tucker [MVP] Feb 20, 2004 #3 Hi, Dim strOut As String = "This " & vbLf & "should be one " & vbLf & "line." strOut = strOut.Replace(vbLf, "") Ken
Hi, Dim strOut As String = "This " & vbLf & "should be one " & vbLf & "line." strOut = strOut.Replace(vbLf, "") Ken
A Andreas Müller Feb 20, 2004 #4 Hi! Try the following: MyString=MyString.Replace(ControlChars.Lf,"") Hope this helps, Andy
A Armin Zingler Feb 20, 2004 #5 Able said: How do I by code identify linefeed in a string and delete it? Click to expand... s = s.replace(chr(10), "") If you want to delete carriage return+line feed, use s = s.replace(vbcrlf, "") -- Armin How to quote and why: http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html
Able said: How do I by code identify linefeed in a string and delete it? Click to expand... s = s.replace(chr(10), "") If you want to delete carriage return+line feed, use s = s.replace(vbcrlf, "") -- Armin How to quote and why: http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html
C Cor Feb 20, 2004 #6 Hi Able, Maybe you get a lot of others, (Not that you should take this, but I saw already 3 other methods) aString = Replace(myString, chr(10), "") Cor
Hi Able, Maybe you get a lot of others, (Not that you should take this, but I saw already 3 other methods) aString = Replace(myString, chr(10), "") Cor
H Herfried K. Wagner [MVP] Feb 20, 2004 #7 * "Able said: How do I by code identify linefeed in a string and delete it? Click to expand... \\\ Dim s As String = ... s = s.Replace(ControlChars.Lf, "") ///
* "Able said: How do I by code identify linefeed in a string and delete it? Click to expand... \\\ Dim s As String = ... s = s.Replace(ControlChars.Lf, "") ///
C Cor Feb 20, 2004 #8 Hi Herfried, Was already given by Andreas, I thought you could better, ) Cor Herfried \\\ Dim s As String = ... s = s.Replace(ControlChars.Lf, "") /// Click to expand... \\\Andreas Try the following: MyString=MyString.Replace(ControlChars.Lf,"") Hope this helps, ///
Hi Herfried, Was already given by Andreas, I thought you could better, ) Cor Herfried \\\ Dim s As String = ... s = s.Replace(ControlChars.Lf, "") /// Click to expand... \\\Andreas Try the following: MyString=MyString.Replace(ControlChars.Lf,"") Hope this helps, ///
H Herfried K. Wagner [MVP] Feb 20, 2004 #9 * "Cor said: Was already given by Andreas, I thought you could better, Click to expand... :->