RE: Replace Syntax

2007-11-13 Thread Adkins, Randy
Remove the single quotes from form.description. You are treating it as a string rather a variable -Original Message- From: Rick Sanders [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 13, 2007 9:25 AM To: CF-Talk Subject: Replace Syntax Hey list, I'm trying to replace double

Re: Replace Syntax

2007-11-13 Thread Todd
#Replace(form.description,'',',ALL)# On Nov 13, 2007 9:25 AM, Rick Sanders [EMAIL PROTECTED] wrote: Hey list, I'm trying to replace double quotes for single quotes in a string using this syntax: #Replace('form.description','',',ALL)# However, it's giving back form.description in the

RE: Replace Syntax

2007-11-13 Thread Rick Sanders
Sweet! It worked, thanks! Rick Sanders Webenergy Canada: 902-401-7689 USA: 919-799-9076 Canada: www.webenergy.ca USA: www.webenergyusa.com -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: November-13-07 11:02 AM To: CF-Talk Subject: Re: Replace

Re: Replace Syntax

2007-11-13 Thread Ben Doom
replace(form.description not replace('form.description'... form.description is the variable, 'form.description' is a string with the name of the variable. --Ben Doom Rick Sanders wrote: Hey list, I'm trying to replace double quotes for single quotes in a string using this syntax:

RE: Replace Syntax

2007-11-13 Thread Robert Harrison
You need the breaking . Try this: #Replace('form.description','',rsquo,ALL)# Robert B. Harrison Director of Interactive services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 T : 631.231.6600 Ext. 119 F : 631.434.7022 www.austin-williams.com Great advertising can't be

Re: Replace Syntax

2007-11-13 Thread Claude Schneegans
What am I doing wrong? You are actually replacing quotes in the string 'form.description' instead of variable form.description. Just try #Replace(form.description,'',',ALL)# -- ___ REUSE CODE! Use custom tags; See

RE: Replace Syntax

2007-11-13 Thread Bobby Hartsfield
cfset txt = Replace(form.description,,',ALL) / ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Rick Sanders [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 13, 2007 9:25 AM To: CF-Talk Subject: Replace Syntax Hey list, I'm

Re: Replace Syntax

2007-11-13 Thread Eric Cobb
remove the quotes around form.description #Replace(form.description,'',',ALL)# Rick Sanders wrote: Hey list, I'm trying to replace double quotes for single quotes in a string using this syntax: #Replace('form.description','',',ALL)# However, it's giving back

RE: Replace Syntax

2007-11-13 Thread Dave Watts
#Replace('form.description','',',ALL)# Remove the quotes around form.description. Dave Watts, CTO, Fig Leaf Software ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now

RE: replace syntax issue

2006-11-22 Thread Ian Skinner
CFSET get_page = replace(page_content, img src=http://productlocator.site.com/productlocator/resources/9/KEGP/header_02.gif; width=242 height=75, ) You need some quotes around your img string. CFSET get_page = replace(page_content, 'img

Re: replace syntax issue

2006-11-22 Thread Jochem van Dieten
coldfusion.developer wrote: Why isn't this working? cffile action=read file=http://www.site.com/StoreLocator/Store_page.txt; variable=page_content The file attribute of cffile requires a path, not a URL. CFSET get_page = replace(page_content, img

RE: replace syntax issue

2006-11-22 Thread Bobby Hartsfield
If you need to read content from a URL, use cfhttp not cffile. ..:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 22, 2006 10:36 AM To: CF-Talk Subject: replace syntax