August 2001
Intermediate to advanced
976 pages
38h 8m
English
ReplaceList
ReplaceList(string, list1, list2)Returns string with all the elements from
list1 replaced by the corresponding
elements from list2. ReplaceList( ) performs a case-sensitive search. Here’s an example
that shows how to use this function:
<CFSET MyString="This is my string."> <CFSET List1=" is,my,string"> <CFSET List2=" function,is,cool"> <CFOUTPUT> <B>Original String:</B> #MyString#<BR> <B>List1:</B> #List1#<BR> <B>List2:</B> #List2#<P> <B>ReplaceList(MyString, List1, List2):</B> #ReplaceList(MyString, List1, List2)# </CFOUTPUT>
Read now
Unlock full access