You haven't said what the problem is (I don't think you have anyway). Also, sort that formatting out, no one needs to see that :O|
:OD Adrian -----Original Message----- From: erik tom Sent: 03 April 2008 16:32 To: CF-Talk Subject: ColdFusion array problem I have a query that output the data. What i need is to be able create a 2 dementional array to store the courseId and EmployeeId assoosiated with this course. The reason i am doing this b/c this query gives the all required info . and then i will have the other query which gives the number of completed courses , so I will compare how many reuired and how many are done , and if they not required then mark them as optional <cfset m = ArrayNew(1)> <cfset m2=ArrayNew(1)> <cfloop from="1" to="#ArrayLen(arryCourses)#" index="i"> <cfset m[i]=#EmployeeID#> <cfset m2[i]=#CourseId#> <cfoutput>#m[i]#</cfoutput> <cfoutput>#m2[i]#</cfoutput> <cfif Coursename eq "#arryCourses[i][3]#"> <cfset comparray[i] = #Dateformat(CompletionDate, "mm/dd/yy")#> <cfset arryCntTotals[i][1] = arryCntTotals[i][1] + 1> <cfset arryCntTotals[i][2] = arryCntTotals[i][2] + 1> </cfif> </cfloop> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302592 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4