Title:
Bug 78726:ArrayContains() performs a case sensitive comparison of String values
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): CF Searching / CF Searching (CF Searching)
Created: 07/13/2009
Components: Documentation, General
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Platforms All
Vote Count: 0
Problem:
ArrayContains() performs a case sensitive comparison of String values. This should be mentioned in the documentation.
Method:
<cfset arr = arrayNew(1)><cfset arrayAppend(arr, "lions")><cfset arrayAppend(arr, "tigers")><cfset arrayAppend(arr, "bears")><cfset arrayAppend(arr, "oh my")><cfif arrayContains(arr, "OH MY")> string found<cfelse> string not found because comparison is case sensitive</cfif>
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3039247
External Customer Info:
External Company:
External Customer Name: CF Searching
External Customer Email: 248D17EF472002E0992015B9
External Test Config: 07/13/2009
Attachments:
Comments: