You have to escape them all.  So, replace every instance of ' with '',
and every instance of " with "" and you should be set =)

Chris Peterson
Gainey IT
Adobe Certified Advanced Coldfusion Developer

-----Original Message-----
From: Che Vilnonis [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 23, 2007 8:31 AM
To: CF-Talk
Subject: Setting a variable that contains quotes and apostrophes.

I have a list of plant sizes that I want to set to a variable. The list
contains quotes and apostrophes. I can't seem to set the list to a
variable
with both. I have to separate them out like so. Is there a way to
combine
them?

<cfset sizeList = '4" pot,1 quart,2 quart,1 gal.,2 gal.,3
gal.,2-3",3-4",3-6",4-5",5-6",6-8",8-10",10-12",12-15",15-18",18-24"' />

<cfset sizeList2 = "2-3',3-4',4-5',5-6'" />

Thanks, Che




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291817
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to