Dont you need to include "ALL" for it to replace all strings in the message?
Otherwise it just replaces the first found.

-----Original Message-----
From: David Cummins [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 11, 2001 7:41 PM
To: CF-Talk
Subject: Re: Replace List Help - SORRY


Okay - sounds strange... have you tried removing the space after the commas
in
the list (remember the space will become part of the string to match).

As far as building them dynamically, try using the valuelist function - once
for
the things to replace, once for the replacements.

David

Erika Foster wrote:
>
> Sorry about that last message - kids playing with the keyboard.
>
> Can someone tell me why this doesn't work?
>
> #ReplaceList(ParagraphFormat(message), ":-), :'(", "<img
> src=images/smiley.gif>, <img src=images/sad.gif>")#
>
> It works for the first replacement, but not for subsequent replacements in
> the list.  Also - I have the text and the images to replace the texts in a
> DB table.  I'd like to be able to build this ReplaceList function
> dynamically.  Any suggestions?
>
> Thanks!
>
> Erika Foster
> engineering-environmental Management
> Applications Developer
> (505) 866-1654
> [EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to