How to delete a line break

Hello
in my string variable, there are no necessary line breaks, because of what the esthetic text is lost
as it is called in the VB.net, 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

@Kirill_Kubskiy,

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.

3 Likes

Thank you! It helped me)

Hi, can i use β€œEnvironment.NewLine” in execute query?

What exactly query?

Probably yes