it's been said over and over in this thread.  arrayAppend() returns a
boolean.
if you do <cfset session.pageList = arrayAppend(myArray, structNew()) />,
you're essentially setting the value of session.pageList to "true".

Then, when you try to run an array function on session.pageList, you get the
error because it's not an array.  it's a boolean whose value is true.

read thru the replies and you'll see.  you're asking for help and people are
trying to give it to you, but you don't seem to want to take it.

<cfset arrayAppend(myArray, structNew()) />.  that will fix your problems.

On Wed, Mar 11, 2009 at 8:48 AM, Priya Koya <[email protected]> wrote:

>
> Is this right?
>
> <cfset myarray = arrayNew(1)>
>
> <cfset session.pageList = arrayAppend( myarray, structNew() )>
>
> <cfset NumberPage = arraylen(session.PageList)>
> for finding out he arraylen??
> because this is where it is giving me the error......
>
> On Wed, Mar 11, 2009 at 10:21 AM, Adrian Lynch <[email protected]
> >wrote:
>
> >
> > Out of interest, I wonder what would have to happen for ArrayAppend to
> > return false?!
> >
> > Adrian
> >
> > > -----Original Message-----
> > > From: Dominic Watson [mailto:[email protected]]
> > > Sent: 11 March 2009 12:37
> > > To: cf-talk
> > > Subject: Re: Append Arrays with Structures
> > >
> > >
> > > ArrayAppend does not return the array - it returns "True, on
> > > successful completion."
> > >
> > > (
> http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/
> > > html/wwhelp.htm?context=ColdFusion_Documentation&file=00000381.htm)
> > >
> > > So:
> > >
> > > <cfparam name="session.pageList" default="#arrayNew(1)#" />
> > > <cfset arrayAppend( session.pageList, structNew() ) />
> > > ... etc.
> > >
> > >
> > > Dominic
> >
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:320376
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to