Forum Moderators: open
Your solution replaces both a carriage return and line feed together in .Net syntax
Perhaps next time you could explain more learly what you want?
For reference, the contants you might need are as follows
ControlChars.Cr (Carriage Return) (ASCII: 13)
ControlChars.Lf (Line Feed) (ASCII: 10)
ControlChars.NewLine (OS Independant, CR & LF on Windows)
For standard .Net structure, you want to do something like this...
strYourString.Replace(ControlChars.NewLine,"/")
strYourString.Replace(ControlChars.Cr,"/")
strYourString.Replace(ControlChars.Lf,"/")
You need to Import the Microsoft.VisualBasic namespace to get it to work on VB.Net
As I said, you really need to state what language you're using before asking for help ;-)