> I use a carraige return and line feed all the time as a
> delimiter. Why doesn't that break?
When you specify multiple characters within the DELIMITERS attribute, CF
uses any one of those as a delimiter, rather than using them together as a
single delimiter. Here's an example:
<cfset demolist = "1:2:;3;4">
<cfloop list="#demolist#" index="i" delimiters=":;">
<cfoutput>#i#</cfoutput><br>
</cfloop>
If CFLOOP treated the value in the DELIMITERS argument as a single
delimiter, your output would be:
1:2
3;4
Instead, though, it's:
1
2
3
4
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists