See what happens when you don't sleep the last 22 hours; you forget that form
variables can be accessed like a structure and looped through using the for(key
in struct) syntax.


> for(key in form) {
> if(listFindNoCase(form.roles,key)) writeOutput(key & "<br>");
> }
>
> =======================================================================
> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)
>
> Email    : [EMAIL PROTECTED]
> Blog     : www.camdenfamily.com/morpheus/blog
> Yahoo IM : morpheus
>
> "My ally is the Force, and a powerful ally it is." - Yoda
>
> > -----Original Message-----
> > From: Trent Shepherd [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 25, 2003 10: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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

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

Reply via email to