If it's a one-dimensional array, you could do this:
<cfloop from="1" to="#ArrayLen( array_name )#" index="i">
#array_name[i]#<br>
</cfloop>
For a two-dimensional array, you could do this:
<cfloop from="1" to="#ArrayLen( array_name )#" index="aRow">
<cfloop from="1" to="#ArrayLen( array_name[aRow] )#" index="aCol">
#array_name[aRow][aCol]#<br>
</cfloop><br>
</cfloop>
Hal Helms
== See ColdFusionTraining.com for info on "Best Practices with ColdFusion &
Fusebox" training ==
-----Original Message-----
From: Kevin Mansel [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 04, 2001 6:28 AM
To: CF-Talk
Subject: Arrays....
How would i display the entire contents of an array? I keep getting this
error....
Expression result cannot be converted to a string
Expressions used inside tags like CFOUTPUT, CFQUERY, CFMAIL, etc. must
evaluate to a value that can be converted to a string for output or dynamic
text accumulation purposes. Complex objects, such as queries, arrays, and
COM/DCOM objects, cannot be represented as strings.
Any help would be much appreciated...
TIA
Kevin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists