Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Expert Programmer's Help required.

Thread Tools
 
Search this Thread
 
Old 05 February 2003, 04:52 PM
  #1  
rik1471
Scooby Regular
Thread Starter
 
rik1471's Avatar
 
Join Date: Nov 2001
Posts: 4,788
Likes: 0
Received 0 Likes on 0 Posts
Post

I've got an ASP newsletter app running on one of my domains. I'm using CDONTs to send the message typed into a web form to everybody in the database.

The problem I have is it is replacing all the apostrophes (') with the string ’

Any ideas of what this is, or how to combat it??

Cheers,

Rik.
Old 05 February 2003, 05:35 PM
  #2  
Alec
Scooby Regular
Support Scoobynet!
 
Alec's Avatar
 
Join Date: Aug 1999
Posts: 583
Likes: 0
Received 0 Likes on 0 Posts
Post

Replace(strTextToCheck,"'","’")

Should do it. Where strTextToCheck is the text that includes the appostrophes.

Cheers

Alec
Old 05 February 2003, 08:22 PM
  #3  
rik1471
Scooby Regular
Thread Starter
 
rik1471's Avatar
 
Join Date: Nov 2001
Posts: 4,788
Likes: 0
Received 0 Likes on 0 Posts
Post

Cheers

Can anyone think of any other characters which will cause similar faults???
Old 06 February 2003, 08:23 AM
  #4  
rik1471
Scooby Regular
Thread Starter
 
rik1471's Avatar
 
Join Date: Nov 2001
Posts: 4,788
Likes: 0
Received 0 Likes on 0 Posts
Post

btt
Old 06 February 2003, 08:57 AM
  #5  
Dream Weaver
Scooby Regular
 
Dream Weaver's Avatar
 
Join Date: Feb 2000
Location: Lancashire
Posts: 9,844
Received 0 Likes on 0 Posts
Thumbs up

Yep, carriage returns, if the email is to go out via HTML.

newString = Replace("yourstring", vbCrLf, "<br>")

You should also use the trim function to get rid of any leading or trailing spaces:

newString = Trim(Replace("yourstring", VbCrLf, "<br>"))
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Frizzle-Dee
Essex Subaru Owners Club
13
09 March 2019 07:35 PM
gazzawrx
Non Car Related Items For sale
13
17 October 2015 06:51 PM
Nick_Cat
Computer & Technology Related
2
26 September 2015 08:00 AM
The Joshua Tree
Computer & Technology Related
18
11 September 2015 09:24 PM



Quick Reply: Expert Programmer's Help required.



All times are GMT +1. The time now is 02:45 PM.