|
-
Oct 25th, 2005, 08:21 AM
#1
Thread Starter
Frenzied Member
How to remove unwanted linefeeds and carriage returns?
I get an old recordset from the sql server database.
And I use server side vbcode to write javascript onto a webpage.
The problem I get is that in some of the records I find CR and LF, that makes the javascript garbage...
For every string I write in the javascript, I perform a replace using \n
But yet the LF and CR remains. I checked the output in the hex editor and I find both 0D and 0A... and yet the replace method has replaced the \n with a blank...
So, are there any other ways in vb to completly get rid of the Carraige returns??
kind regards
Henrik
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
|