Thanks Andy. Who ever thought that anything this ugly would work. ;)

<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-2
4"",2-3'',3-4''" /> 

-----Original Message-----
From: Peterson, Chris [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 23, 2007 9:08 AM
To: CF-Talk
Subject: RE: Setting a variable that contains quotes and apostrophes.

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-----

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


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291822
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