<cfscript>
for (i=0, i LT #listLen(form.fieldNames)#, i=i+1) {
if (listFindNoCase(form.roles, i, ",") {
writeOutput(i);
}
}
</cfscript>
banged out really quickly...but hopefully will do what you need (or at
least, get you started on the right track)
charlie
Trent Shepherd writes:
> I am having a block on rewriting the following in cfscript
>
>
>
> <cfloop list="#form.fieldnames#" index="fnames">
>
> <cfif ListFindNoCase(form.roles,fnames,",")>
>
> <cfoutput>#fnames#<br></cfoutput>
>
> </cfif>
>
> </cfloop>
>
>
>
>
>
> thanks in advance
>
>
>
> trent
>
>
>
>
>
>
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4