On Jan 21, 2008 11:22 AM, Mark Proper <[EMAIL PROTECTED]> wrote: > I have a string that I knew was going to have commas in it (such as > company names or address) so I made the delimiter in the string an > asterisk. > Here is small example code I've been trying to get working: > > <cfset custom = 'Yummy Crackers, Inc.*Florida'> > > <cfloop list="#custom#" index="fields"> > > <cfoutput>Company = #listGetAt(fields, 1, > '*')#<br></cfoutput> > > <cfoutput>Location = #listGetAt(fields, 2, > '*')#<br></cfoutput> > > </cfloop>
you specified the delimiter as an asterisk in your listGetAt() functions, but if you're going to <cfloop> over a list you need to specify it in the <cfloop> tag as well (otherwise it defaults to a comma). <cfloop list="#custom#" index="fields" delimiters="*"> -- "Scientists tell us that the fastest animal on earth, with a top speed of 120 feet per second, is a cow that has been dropped out of a helicopter." - Dave Barry ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297013 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

