Monday, March 22, 2010

findoneof in CF

Finds the first occurrence of any one of a set of characters in
a string, from a specified start position. The search is case-sensitive.
The position of the first member of set found in string; or 0, if no
member of set is found in string.

Syntax:
FindOneOf(set, string [, start ])

Parameter Description
set A string or a variable that contains one.
String that contains one or more characters to search for.
string A string or a variable that contains one. String in which to search.
start Start position of search.

Program:

#findoneof("aeiou",stringToSearch)#


#findoneof("aeiou",stringToSearch,4)#


#findoneof("@%^*()",stringToSearch)#



Source: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functi82.htm#wp1104557

No comments:

Computers Add to Technorati Favorites Programming Blogs - BlogCatalog Blog Directory