That solved the problem! However, just out of curiosity, I'm going to tinker
with the following suggestion someone sent to me:
lstQuotes="#Chr(34)#,#Chr(39)#,#Chr(147)#,#Chr(148)#";
VALUE=StringName;
for (i=1; i LTE ListLen(lstQuotes); i=i+1) {
VALUE=Replace(VALUE,ListGetAt(lstQuotes,i),
If you're putting the values into , then use
htmlEditFormat(...) to escape the quotes into "
--Daryl
- Original Message -
From: "Keith Purtell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 4:43 PM
Subject: RE: [KCFusion] Replacing double quotes in a string
>
I've tried all the suggestions. Here's the latest version; the additional
Chr's catch other types of quote marks. Well, they're supposed to. After
that, you can see results from the page output by CF. The problem when this
goes to the browser is that this is part of a loop that populates a SELECT
I did it that way because I seemed to remember in previous replace functions
that #000; format was more reliable for the part of the function that
catches characters to be replaced, and the Chr(00) format was more reliable
for designated the replacement string. However, I'll give your suggestion
Your code is literally looking for "#148" rather than the double quote
character.
I would use Chr(34) to designate double quotes in your ReplaceList function.
Billy Cox
Intranet/Extranet Development
Sprint PCS
(816) 559-5672 (voice)
(816) 559-5810 (fax)
-Original Message-
From: Keit
I'm trying to catch double quote characters in a text string and replace
them with the word "inch". No error messages, but my code lets double quotes
get past. I can't see what's wrong. Anyone care to diagnose this? I'm using
CF5.
VALUE='#ReplaceList("StringName", "#148;, #147;, #34;, #82