Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > trim return caracter

Reply
Thread Tools

trim return caracter

 
 
Séverine Donnay
Guest
Posts: n/a
 
      11-10-2004
Hi,

I make a csv file with values from data base fields . If my value contains a
carriage return caracter at the end, a new line is created in my csv file. I
tried to replace chr(13) caracter by an empty caracter but it doesn't work,
my code is :
Replace(Trim(element.value), chr(13),"")

Do you have any idea to resolve my problem ?
Thanks.

Severine


 
Reply With Quote
 
 
 
 
Ray Costanzo [MVP]
Guest
Posts: n/a
 
      11-10-2004
Try replacing vbCrLf instead of Chr(13).

Replace(Trim(element.value), vbCrLf,"")

Ray at work



"Séverine Donnay" <> wrote in message
newsVukd.24682$ ...
> Hi,
>
> I make a csv file with values from data base fields . If my value contains
> a
> carriage return caracter at the end, a new line is created in my csv file.
> I
> tried to replace chr(13) caracter by an empty caracter but it doesn't
> work,
> my code is :
> Replace(Trim(element.value), chr(13),"")
>
> Do you have any idea to resolve my problem ?
> Thanks.
>
> Severine
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ Topic - How do I trim whitespace - LTRIM/RTRIM/TRIM? FAQ server Javascript 2 04-24-2007 01:59 AM
FAQ Topic - How do I trim whitespace - LTRIM/RTRIM/TRIM? FAQ server Javascript 26 02-26-2007 05:06 PM
FAQ Topic - How do I trim whitespace - LTRIM/RTRIM/TRIM? FAQ server Javascript 6 12-25-2006 08:47 PM
FAQ Topic - How do I trim whitespace - LTRIM/RTRIM/TRIM? FAQ server Javascript 0 10-25-2006 11:00 PM
FAQ Topic - How do I trim whitespace - LTRIM/RTRIM/TRIM? FAQ server Javascript 0 08-28-2006 11:00 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57