Gene,
You can loop through 2/3D arrays like this:
<cfset mytest = ArrayNew(2)>
...load the array...
<cfloop from="1" to="#arraylen(mytest)#" index="OuterLoop">
<cfloop from="1" to="#arraylen(mytest[Outerloop])#" index="innerloop">
<cfoutput>#mytest[outerloop][innerloop]#</cfoutput><br>
</cfloop>
</cfloop>
The same holds true in 3d - just add an additional loop. Note that you
must reference the particular dimension element you are in when starting a
new loop
e.g.: " to="#arraylen(mytest[OuterLoop])#" "
Kevin
At 10:14 AM 6/30/00 +0000, you wrote:
>Taking this one step further, I'd be interested in seeing an example of
>the best way to
>loop through a 3-dim array. ArrayLen only shows the length of the first
>dimension - how
>do you determine the size of the 2nd and 3rd?
>
>Gene Kraybill
>
> > > Is there a way that i can loop through an array and display
> > > all the items????
> >
> > Why, certainly:
> >
> > <cfloop index="i" from="1" to="#ArrayLen(myarray)#">
> > <cfoutput>Item #i#: #myarray[i]#</cfoutput><br>
> > </cfloop>
> >
> > Dave Watts, CTO, Fig Leaf Software
> > http://www.figleaf.com/
> > voice: (202) 797-5496
> > fax: (202) 797-5444
> >
> ------------------------------------------------------------------------------
--------------------------
Kevin Marshall
Web Application Developer
eCalton.com, Inc.
Vero Beach, FL
www.ecalton.com
[EMAIL PROTECTED]
561.569.4500
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.