|
-
Apr 16th, 2006, 06:40 AM
#22
Thread Starter
Frenzied Member
Re: Remove trailing NewLines from string
 Originally Posted by jmcilhinney
This will remove all carriage return and line feed characters from the end of your string:
VB Code:
myString = myString.TrimEnd(Convert.ToChar(Keys.Return), Convert.ToChar(Keys.LineFeed))
this works perfectly, thanks a lot mate 
ps I cant +++++rep you again yet so I will when I can
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|