How to delete a line break

excel
activities
studio

#1

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


#2

@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

Thank you! It helped me)


#4

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


#5

What exactly query?

Probably yes