yes, as jason pinted out, arrayappend() function differs from listappend() - with arrayappend() one should not set the array to the function's return:
with arrayappend: <cfset arrayappend(arrayvar, value_to_append)> but with listappend() one has to do: <cfset prev_defined_list_var = listappend(prev_defined_list_var, new_value_to_append)> Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Priya Koya wrote: > I am getting an error here: > *session.pageList = arrayAppend( session.pageList, structNew() )> * > > Error: > Object of type class java.lang.Boolean cannot be used as an array > On Wed, Mar 11, 2009 at 9:55 AM, Jason Fisher <ja...@wanax.com> wrote: > > >> You're setting the value of session.pageList to the string "arrayNew()", >> which is throwing your error. If you're using <cfparam then you need the # >> signs and to create an array you need to specify the number of dimensions >> (in this case "1"): >> >> <cfparam name="session.pageList" default="#arrayNew(1)#" /> >> >> If this is not in a loop or something, you could just set directly: >> >> <cfset session.pageList = arrayNew(1) /> >> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320362 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4