I just found my problem. I was just using the ArrayNew function incorrectly
ArrayNew(len(getRespondents.RecordCount)) Thanks, David -----Original Message----- From: David Jones [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 7:16 PM To: CF-Talk Subject: Array Problem Can someone help me with this error? An error occurred while evaluating the expression: codeArray[getRespondents.currentRow] = lvAllAnswerCodeStr Error near line 335, column 16. Cannot set element of indexed object The element at position 1 of the object cannot be set. May be the object is read-only. The object has elements in positions 1 through 0. The error is in dimension 1 of object "codeArray". ---------------------------------------- This is consistant on one server but never happens on others. It is giving me a headache. It is caused by ----------------------------------------- <cfset codeArray = ArrayNew(len(getRespondents.RecordCount))> <cfloop query="getRespondents"> <cfset codeArray[getRespondents.CurrentRow] = "82NN41NNNNNNNNNNNNNNNNNNNNNNNN243NNNNNNN409NNNNNNNNNNNNNNNNNNNNNN409NNNNNNN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN2003-03-20 13:57:53NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN14 NNNN5NN172NN217NN1010NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN1 8NNNN5NNNNNNNNNNNNNNNNN4N23NNNN4NNN41NNNNNN41NNNNNN41NNNNNN4NNN4NNN4NNN41NNN NNN41NNNNNN4NNNNNNNNN10NNNNNNNNNNNNNNNNNNNN22NN2NNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNN20NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN"> </cfloop> ---------------------------------------- Any help will be appreciated. Thanks, Dvaid ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4