As I understand, the collection style loop is only for use with structures. To loop over an array, use a standard index loop.
<!----------------//------ andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --------------//---------> -----Original Message----- From: Protoculture [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 15, 2005 4:34 AM To: CF-Talk Subject: nested array and structure loop inside cfmail.... Hello All... I'm trying to figure out what error is happening here. Coldfusion just gives me back nothing...literally. It just says there's an error and it highlights this line. But no more information is given as to what is causing the problem. I've already checked out my array of structures and it is being filled with the correct data. Error line that CF highlights: <cfloop collection="#arr_AllJobs[i].qry_candidates#" item="j"> The #arr_AllJobs[i].qry_candidates# holds a query object. I've tried looping with <cfloop collection and query, but both return the same vague error. Any ideas? am I missing something obvious? Perhaps CF doesn't like this process inside a cfmail tag. *arr_AllJobs* is an array of all the jobs we have with responses. in each array element is a structure of the following items. job_title, job_ref, job_views, job_responses, job_datePoted Full Code: <cfmail to="#myemaddress#" from="#myfromaddress#" subject="#mysubject#" type="html"> <!--- loop through all the items ---> <cfloop from="1" to="#arraylen(arr_AllJobs)#" index="i"> <b>JOB TITLE :</b> #arr_AllJobs[i].job_title#<br> <b>JOB REFERENCE :</b> #arr_AllJobs[i].job_ref#<br> <b>JOB VIEWS:</b> #arr_AllJobs[i].job_views#<br> <b>JOB RESPONSES:</b> #arr_AllJobs[i].job_responses#<br> <b>DATE POSTED:</b> #arr_AllJobs[i].job_datePosted#<br><br> <b>RESPONSE BREAKDOWN:</b><br> <cfloop collection="#arr_AllJobs[i].qry_candidates#" item="j"><!--- loop through all responses ---> <a href="mailto:#urlDecode(candidate_email)#">#urlDecode(candidate)#</a> (#urlDecode(candidate_email)#) </cfloop> </cfloop> </cfmail> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224171 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

