How hard would it be to quote each of the values? Would '1','2','','4' still come back as four elements?
-----Original Message----- From: Adam Haskell [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 9:32 AM To: CF-Talk Subject: Re: ColdFusion ignores empty list elements This is not a flaw...it is a noted enhancement, one which I like, and I think MM should pick up, they could easily add a boolean value at the end of list function to disignate if you want to include blank entries. I think it is obsurd to use Macromedia's product as a measuring stick as to what is a flaw or not...but that is getting way too off topic... Adam H On Mon, 7 Mar 2005 09:20:37 -0500, S. Isaac Dealey <[EMAIL PROTECTED]> wrote: > > Switch to Bluedragon :) > > If BD's interpretation of the list functions isn't the same as CF's > (without creating new functions with different names to handle them > differently) then I'd have to consider that a flaw in BD. > > I at one point had a function written to convert lists to arrays and > include empty elements... > > myarray = arraynew(1); > f = findoneof(",",mylist); > while (f) { > if (f is 1) { arrayappend(myarray,""); } > else { > arrayappend(myarray,left(mylist,findoneof(",",mylist))); > } > mylist = removechars(mylist,1,f); > f = findoneof(",",mylist); > } > > That's from memory -- haven't used it in a long while -- probably not > since cf5 ... and all things considered, the Java version is likely > more efficient. > > s. isaac dealey 954.522.6080 > new epoch : isn't it time for a change? > > add features without fixtures with > the onTap open source framework > > http://macromedia.breezecentral.com/p49777853/ > http://www.sys-con.com/story/?storyid=44477&DE=1 > http://www.sys-con.com/story/?storyid=45569&DE=1 > http://www.fusiontap.com > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197701 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

