Listfindnocase - MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference

Cfml language reference
Table of Contents

Advertisement

416

ListFindNoCase

Returns the index of the first occurrence of a value within a list. Returns 0 if no value
was found. The search is case-insensitive.
See also
Syntax
ListFindNoCase( list , value [, delimiters ])
list
List being searched.
value
Number or string being sought among elements of list.
delimiters
Set of delimiters used in list.
Examples
<!--- This example uses ListFind and ListFindNoCase to see if a
substring exists in a list --->
...
<CFSET temp = ListFindNoCase(myList, FORM.myString)>
<CFIF temp is 0>
<CFELSE>
temp)#
</CFIF>
</CFIF>
</CFIF>
</BODY>
</HTML>
ListContains
and ListFind.
<H3>An employee with that exact last name was not found</H3>
<CFOUTPUT>
<P>Employee #ListGetAt(ValueList(SearchEmpLastName.FirstName),
#ListGetAt(ValueList(SearchEmpLastName.LastName), temp)#, of the
#ListGetAt(ValueList(SearchEmpLastName.Department), temp)#
Department, can be reached at
#ListGetAt(ValueList(SearchEmpLastName.Phone), temp)#.
<P>This was the first employee found under this case-insensitive
last name search.
</CFOUTPUT>
CFML Language Reference

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion 4.5

Table of Contents