Hi Guys,
Need help on this.
I have a list. And inside my list is "one.doc,two,three,four.csv,five.csv "
ex : filelist = one.doc,two,three,four.csv,five.csv
How do I get element number that contains ".csv"?
For this example I should get element 4 and 5.
Is there a better CF function for this?
Basically I need to get the files that are .csv for validation.
What i did was i put it on a loop,but running loop may get problem specially if there are hundreds of files.
Code:
<CFSET numLoop = #Listlen(aList)#>
<cfoutput>numLoop :#numLoop#</cfoutput> <br>
<cfoutput>
<cfloop index="i" from="1" to="#numLoop#">
element: #ListContains(filelist, ".csv")#
</cfloop>
</cfoutput>
Thanks in advance.