deleting carriage return and linefeed characters from astring

M

Maxxam

Hi,

I have a simple question but i can't solve it simple. How can i remove
carriage returns and linfeed characters , \n\r, form a string?

Thanks,
Andre
 
M

Maxxam

Yes, it's simple. I did it the hard way:
SubStr = SubStr.Remove(SubStr.IndexOf("\r\n",0,SubStr.Length),4);

Thanks,

Andre
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top