<cfscript>
a = listToArray(form.fieldnames);
for (i = 1; i LTE arrayLen(a); i = i + 1) {
if (listFindNoCase(form.roles, a[i]))
writeoutput(a[i] & "<br />");
}
</cfscript>
Not quite a translation, but arrays are nicer than lists.
---
Barney Boisvert, Senior Development Engineer
AudienceCentral (formerly PIER System, Inc.)
[EMAIL PROTECTED]
voice : 360.671.8708 x12
fax : 360.647.5351
www.audiencecentral.com
> -----Original Message-----
> From: Trent Shepherd [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 25, 2003 8:37 AM
> To: CF-Talk
> Subject: cfscript help
>
>
> 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
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4