[Top] [All Lists]

CSV Lists and Empty Last Element

Subject: CSV Lists and Empty Last Element
From: "NuckNuck"
Date: Mon, 20 Aug 2007 13:36:53 +0000 UTC
Newsgroups: macromedia.coldfusion.cfml_general_discussion
I've ready many posts on how to deal with empty elements that have been ignored 
in a list.  Generally, the solution is something like this:  <cfset someList= 
Replace(aList, ",,", ",NULL", "all")>.

 While this is great for empty elements that occur within a list, how does one 
deal a situation when the last element in a list is empty?  I have a CSV file 
comprised of 5 columns.  The last column has several empty values so the above 
code does not work.

 How can the above code be reworked to account for this condition? 

<Prev in Thread] Current Thread [Next in Thread>