members of a collection.
like this:
<cfset someStruct = structNew()>
<cfset someStruct.foo = "bar">
<cfloop collection="#someStruct#" item="i">
<!--- do stuff --->
</cfloop>
or this:
<cfscript>
for (i in someStruct) {
// do stuff
}
</cfscript>
What exactly was it that you wanted to iterate over?
Spike
--------------------------------------------
Stephen Milligan
Code poet for hire
http://www.spike.org.uk
Do you cfeclipse? http://cfeclipse.tigris.org
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of Damien McKenna
>Sent: Wednesday, August 11, 2004 7:58 AM
>To: CF-Talk
>Subject: "foreach"?
>
>Is there any way to do a foreach-type loop in CFML?
>--
>Damien McKenna - Web Developer - [EMAIL PROTECTED]
>The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
>"Nothing endures but change." - Heraclitus
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

