August 2001
Intermediate to advanced
976 pages
38h 8m
English
FindNoCase
FindNoCase(substring, string[,startpos])
Returns the position of the first occurrence of
substring in
string. If
substring isn’t found,
FindNoCase( ) returns 0. An optional starting
position for the search can be specifies by the
startpos parameter. FindNoCase( ) performs a case-insensitive search. Example:
<CFSET MyString="This is a case-insensitive example of using the FindNoCase function to find a substring within a string."> <CFSET MySubString="find"> <CFOUTPUT> <B>String:</B> #MyString#<BR> <B>Substring:</B> #MySubstring# <P>The first occurrence of <B>#MySubstring#</B> is at position #FindNoCase(MySubstring, MyString)#. </CFOUTPUT>
Read now
Unlock full access