Findoneof - MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference

Cfml language reference
Table of Contents

Advertisement

Chapter 2: ColdFusion Functions

FindOneOf

Return the first index of the occurrence of any character from set in string. Returns 0 if
no characters are found. The search is case-sensitive.
See also Find, Compare, and
Syntax
FindOneOf( set , string [, start ])
set
String containing one or more characters being sought.
string
String being searched.
start
Starting position for the search.
Examples
...
<!--- depending upon the action desired,
different function --->
<CFSWITCH EXPRESSION="#tag#">
<CFCASE VALUE="find">
</CFCASE>
<CFCASE VALUE="findNoCase">
</CFCASE>
<CFCASE VALUE="findOneof">
</CFCASE>
<CFDEFAULTCASE>
</CFDEFAULTCASE>
</CFSWITCH>
...
REFind
<CFSET TheAction = Find(FORM.MyString,
CFHTTP.FileContent, 1)>
<CFSET TheAction = FindNoCase(FORM.MyString,
CFHTTP.FileContent, 1)>
<CFSET TheAction = FindOneOf(FORM.MyString,
CFHTTP.FileContent, 1)>
<CFSET TheAction = Find(FORM.MyString,
CFHTTP.FileContent, 1)>
functions.
perform
349

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion 4.5

Table of Contents