I read a string from DataBase, I have there are 0d0a at the end of this
string when display it as HEX.
How can I trim 0d0a from my string?
Alan Pretre - 24 Aug 2006 22:59 GMT
> How can I trim 0d0a from my string?
str.Trim() or str.Replace("\r\n", "")
-- Alan
dongmt@gmail.com - 25 Aug 2006 07:57 GMT
str=str.substring(0,str.lenght-4)//
delete 4 chars in the end of str
Alfa & Omega - 24 Aug 2006 23:01 GMT
| I read a string from DataBase, I have there are 0d0a at the end of this
| string when display it as HEX.
| How can I trim 0d0a from my string?
Just use:
myString.TrimEnd(char[] trimChars)
hope this helps!
Igor