Priya Koya 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......

Yes, it was, Charlie just explained this again for you.

<cfset arrayAppend(session.pageList, structNew()> would solve the 
problems you have told us about.

But just for another tact, I will also correct this latest code example.

<cfset myArray = arrayNew(1)>

<cfset session.pageList = arrayAppend ( myArray, structNew() )>
<!--- this is an acceptable line, but session.pageList is basically a 
meaningless variable and almost nobody bothers with it --->

<cfset NumberPage = arrayLen(myArray)>
<!--- see how the arrayAppend() function modified the array used in the 
parameter --->



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