<cfparam name="session.cart" default="#arrayNew()#">

poundage makes it an array.  lack of poundage makes it a string.

On 6/7/05, Phillip Perry <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> just 2 lines of code and i'm already hitting a wall. I'm using the following
> lines
> 
> <cfparam name="session.cart" default="arrayNew()">
> <cfset session.cart = arrayAppend(session.cart, structnew())>
> 
> and getting the error code:
> 
> Object of type class java.lang.String cannot be used as an array
> 
> What am i doing wrong?
> 
> Thanks,
> 
> Phil
> 
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:208864
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

Reply via email to