> <cfloop from="1" to="#ListLen(mylist)#" index="i" step="2">
> <cfset firstelement = ListGetAt(mylist,i)>
> <cfset secondelement = ListGetAt(mylist,i+1)>
> ...
> </cfloop>
Convert it to an Array, unless you've only got less than 10 elements in
the list...
ListGetAt is horribly slow on large lists, as is ListLen
<cfset myArray=ListToArray(myList)>
<cfloop from="1" to="#ArrayLen(myArray)#" step="2" index="i">
<cfset firstElement=myArray[i]>
<cfset secondElement=myArray[i+1]>
...
</cfloop>
Philip Arnold
Technical Director
Certified ColdFusion Developer
ASP Multimedia Limited
Switchboard: +44 (0)20 8680 8099
Fax: +44 (0)20 8686 7911
www.aspmedia.co.uk
www.aspevents.net
An ISO9001 registered company.
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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