Returns the index of the first element of a list that contains the specified substring within elements. The search is case-insensitive. If no element is found, returns 0.
See also ListContains and ListFindNoCase.
ListContainsNoCase(list, substring [, delimiters ])
List being searched.
String being sought in elements of list.
Set of delimiters used in list.
<!--- This example shows ListContainsNoCase ---> <HTML> <HEAD> <TITLE>ListContainsNoCase Example</TITLE> </HEAD> <BODY BGCOLOR=silver> <H3>ListContainsNoCase Example</H3> <CFIF IsDefined("FORM.letter")> <!--- First, query to get some values for our list ---> <CFQUERY NAME="GetParkInfo" DATASOURCE="cfsnippets"> SELECT PARKNAME,CITY,STATE FROM PARKS WHERE PARKNAME LIKE `#FORM.letter#%' </CFQUERY> <CFSET tempList = ValueList(GetParkInfo.City)> <CFIF ListContainsNoCase(tempList, FORM.yourCity) is not 0 OR FORM.yourCity is ""> <P><CFIF FORM.yourCity is "">The list of parks for the letter <CFOUTPUT>#FORM.Letter#</CFOUTPUT> ...