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: As Dominic previously stated, arrayAppend() returns a boolean value. The first time you run that line you are overwriting your array and turning it into an array, then the next loop iteration throws an error because session.pageList is now a boolean.
Drop the left side of the line. <cfset arrayAppend(session.pageList ,structNew())> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:320363 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4