Before processing the list, replace all of the empty elements with a place
holder along the lines of:
<CFSET theList = Replace(theList, ",,", ",[empty],", "ALL")>
and then, when looping over the list, check for a value of "[empty]" and
replace it with an actual empty string.
Note that the above code only replaces empty list elements that are in the
middle of the list. It does not catch empty elements at the very beginning
or end of the list.
--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 942-5378
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/
-----Original Message-----
From: Chunshen (Don) Li [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 10:27 AM
To: CF-Talk
Subject: The infamous LIST again!
SET LIST VALUE:
<cfset cfList = "a,b,,d">
<cfloop index="e" list="#cfList#">
<cfoutput>
#e#
</cfoutput>
</cfloop>
Three out of the above FOUR list elements would be displayed.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

