Here ya go..
<cfscript>
myList="item1,item2,item3";
for(i=1;i lte listLen(myList);i=i+1) {
listItem=listGetAt(myList,i);
/* Loop Contents */
}
</cfscript>
HTH
-Ryan
-----Original Message-----
From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 11:03 AM
To: CF-Talk
Subject: looping through a list using cfscript
I need to loop through a comma delimited list (the output of a multiple select box)
using cfscript, yet "list" isn't a loop type in cfscript. Is there any workaround?
Thanks
Pete
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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