tracker issue : CF-3037792

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 75853:Please add a parameter to enable empty values in delimited lists to be accounted for

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Jamie Martin / Jamie Martin (Jamie Martin)

Created: 03/10/2009

Components: Language, Functions

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / 229633

Priority/Frequency: Major / Unknown

Locale/System: English / Platforms All

Vote Count: 11

Problem:

Please add a parameter to enable empty values in delimited lists to be accounted for.

Example:

<cfset variables.howBigAreYou = ListLen(variables.megaemtpylist, "|","true")>

ListLen (LISTVARIABLE [,delimiter] [,CountEmptyValues])

This parameter would be defaulted to FALSE to allow for reverse compatibility, but should be added to any of the list functions that work with position or length determination.


Jamie Martin
jamieazure@gmail.com
Application / Hardware Architect
Pearson


Method:


Result:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3037792

External Customer Info:
External Company:  
External Customer Name: Jamie Martin
External Customer Email: 050012274491EFC79920157F
External Test Config: 03/10/2009

Attachments:

Comments:

+1 vote. It's about time this happened. -- Adam
Vote by External U.
23980 | November 10, 2011 07:17:08 PM GMT
+1 Great Idea. And it simply makes sense to have it supported for all list functions.
Vote by External U.
23981 | November 10, 2011 07:17:10 PM GMT
+1 vote. Ran into a case the other day in CF 8 where this would have been useful. Definitely for all list*() functions
Vote by External U.
23982 | November 10, 2011 07:17:11 PM GMT
This bug has been voted..
Vote by External U.
23983 | November 10, 2011 07:17:13 PM GMT
I'd also like to amend my original bug request to include all the relevant List handling functions... ListGetAt and such would have to be modified also otherwise using ListLen with them would be nightmarish.
Vote by External U.
23984 | November 10, 2011 07:17:16 PM GMT
+1 Please add this feature.
Vote by External U.
23985 | November 10, 2011 07:17:18 PM GMT
+1 for the original ER and +1 for having it apply to all list functions
Vote by External U.
23986 | November 10, 2011 07:17:19 PM GMT
Just take a look at cflib.org to see how many UDFs gets written to work around empty values in delimited lists. This would be a valuable improvment, and it will not break compatibility
Vote by External U.
23987 | November 10, 2011 07:17:20 PM GMT
This bug has been voted..
Vote by External U.
23988 | November 10, 2011 07:17:21 PM GMT
This should be done for all list*() functions.
Vote by External U.
23989 | November 10, 2011 07:17:23 PM GMT
+1, and same for array functions w/ empty array elements (example: ER #75364)
Vote by External U.
23990 | November 10, 2011 07:17:24 PM GMT