FindOneOf

Description

Return the first index of the occurrence of a character from set in string. Returns 0 if no characters are found. The search is case-sensitive.

Category

String functions

Syntax

FindOneOf(set, string [, start ]) 

See also

Find, Compare, REFind

Parameters

Parameter
Description
set
String that contains one or more characters sought
string
String to search
start
Starting position for the search

Example

...
<!--- depending upon the action desired, perform function --->
<cfswitch expression = "#tag#">
  <cfcase value = "find">
    <cfset TheAction = Find(FORM.MyString,
     CFHTTP.FileContent, 1)>
  </cfcase>
  <cfcase value = "findNoCase">
    <cfset TheAction = FindNoCase(FORM.MyString,
     CFHTTP.FileContent, 1)>
  </cfcase>  
  <cfcase value = "findOneof">
    <cfset TheAction = FindOneOf(FORM.MyString,
     CFHTTP.FileContent, 1)>
  </cfcase>  
  <CFDEFAULTCASE>
    <cfset TheAction = Find(FORM.MyString,
     CFHTTP.FileContent, 1)>
  </CFDEFAULTCASE>
</cfswitch>
...