String and linefeed

  • Thread starter Thread starter Able
  • Start date Start date
Hi Able

Try

stringContainingLinefeed.Replace(Convert.ToChar(&HA), String.Empty)

HTH

Charles
 
Hi,

Dim strOut As String = "This " & vbLf & "should be one " & vbLf & "line."

strOut = strOut.Replace(vbLf, "")



Ken
 
Hi!
Try the following:
MyString=MyString.Replace(ControlChars.Lf,"")
Hope this helps,
Andy
 
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 Herfried,

Was already given by Andreas, I thought you could better,

:-))

Cor
Herfried
\\\
Dim s As String = ...
s = s.Replace(ControlChars.Lf, "")
///
\\\Andreas
Try the following:
MyString=MyString.Replace(ControlChars.Lf,"")
Hope this helps,
///
 
Back
Top