How to delete a line break

in my string variable, there are no necessary line breaks, because of what the esthetic text is lost
as it is called in the, to remove it or replace it with a string variable ??
Thanks in advance, the answer to my problem I did not find on the forum

1 Like


If you want to remove line breaks from your string then you can go for this,

yourString.Replace(Environment.NewLine, String.Empty)

But if you are looking for something different show with some example.


Thank you! It helped me)

Hi, can i use “Environment.NewLine” in execute query?

What exactly query?

Probably yes