You could do something like

<CFSCRIPT>
        for (i=1; I lt ListLen(form.fieldnames); i=i+1)
        {
                if (ListFindNoCase(Form.FieldNames,
ListGetAt(Form.FieldNames, i)))
                        writeoutput(ListGetAt(Form.FieldNames, i) & "<br>");
        }
</CFSCRIPT>


HTH



-----Original Message-----
From: Trent Shepherd [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2003 16:37
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
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to