Title:
Bug 82194:CF8 arrayLen(ListToArray(" ")) returns 1CF9 arrayLen(ListToArray(" ")) returns 0This is a bug since the list element is NOT emtpy and whitespaces should be treated as an element
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Max Bergmann / Max Bergmann (9msnmax)
Created: 02/22/2010
Components: Language, Functions
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 251028 / 271837
Priority/Frequency: Major / Unknown
Locale/System: English / Platforms All
Vote Count: 3
Problem:
CF8 arrayLen(ListToArray(" ")) returns 1CF9 arrayLen(ListToArray(" ")) returns 0This is a bug since the list element is NOT emtpy and whitespaces should be treated as an element..This causes errors when migrating from CF8 to CF9, if for example a list is used like this:E.g. list = "1, ,2,3"ListToArray(list)CF8 will return an array len 4: [1] = "1"[2] = " "[3] = "2"[4] = "3"CF9 returns an array with len 3:[1] = "1"[2] = "2"[3] = "3"
Method:
CF 8arrayLen(ListToArray("1,2, ,3")) returns 4CF9arrayLen(ListToArray("1,2, ,3")) returns 3
Result:
listToArray different behaiour between CF8 and CF9
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3040994
External Customer Info:
External Company:
External Customer Name: Max Bergmann
External Customer Email: 203761014B834200992015C2
External Test Config: 02/22/2010
Attachments:
Comments: