>well, the 2nd dimension of the first array contains the # of answers >to test 1 (again, minus 1 since the first element of the 2nd dimesion >is specifying the test #). > >so loop over the first dimension and do an arrayLen() - 1 on the >second dimension. > ><cfoutput> > <cfloop from="1" to="#arrayLen(QstnKey)#" index="i"> > Test #i#: #arrayLen(QstnKey[i]) - 1# Questions<br /> > </cfloop> ></cfoutput> > >This works, since multi-dimensional arrays in CF are just 1d arrays of >1d arrays. > >(disclaimer: the #arrayLen(QstnKey[i]) - 1# notation will not work pre-CFMX) > > >On Fri, 10 Dec 2004 16:31:43 -0400, Joy Holman <[EMAIL PROTECTED]> wrote: >>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Silver Sponsor - CFDynamics http://www.cfdynamics.com Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187599 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54