Here's some demo code:

<cfset s="91766,91777,91778">

<cfset s="'"&replace(s,",","','","all")&"'">

<cfoutput>#s#</cfoutput>

HTH,

--
Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc. - www.CoolFusion.com  - 631-737-4668 x101
inFusion Mail Server (iMS) - The Intelligent Mail Server
<<< Vote for iMS as the CFDJ Reader's Choice Awards Most Innovative Product >>>
http://www.sys-con.com/coldfusion/readerschoice2001/nominationformbpa.cfm
>>> Find out how iMS Stacks up to the competition: 
>http://www.coolfusion.com/imssecomparison.cfm

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, December 12, 2001 5:37 PM
Subject: Problems with single quotes and comma list


> Hey there, right now I've got a little puzzle I can't seem to solve right
> now I have a string
> 
> 91766,91777,91778 (basically a comma delimited list of zip codes)
> 
> That I need to fix up with single quotation marks so I can search against 
> in
> a database string, basically like this
> 
> '91766','91777','91778' etc.
> 
> How would you go about doing this? All the functions I've tried seem to 
> have
> problems with the single quotes vs. double quotes.  Thanks!
> 
> 
> Gregory Harris
> [EMAIL PROTECTED]
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to