What is the full error? I don't see anything wrong there.


p.s. this won't help, but this:

 <cfset lcategories = #arrayToList (stitems.categories)#>

should be

 <cfset lcategories = arrayToList (stitems.categories)>

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email   : [EMAIL PROTECTED]
ICQ UIN : 3679482

"My ally is the Force, and a powerful ally it is." - Yoda

> -----Original Message-----
> From: manoj singh [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 10, 2001 2:39 PM
> To: Spectra-Talk
> Subject: Accessing values from an array....
>
>
> Hi All,
>
>
> I am trying to get the values from an array by doing the
> following. Please
> let me know where I am going wrong. I am using <cfa_Content... as follows
>
> <cfa_contentobject
>       datasource="#request.datasource#"
>       objectid="4C79E901-404E-4426-BD02F15AD2A7B2C5"
>       method="display"
>       r_stobjects="stitems"
>       r_stparams="param" >
>
> After this I dump using the following...
>
>         <cfa_dump var="#stitems#">
>
> There is an array in the stitems named categories. I want to
> access values
> of this array and for that I do the following
>
>         <cfset lcategories = #arrayToList (stitems.categories)#>
>
>
>           <cfoutput>
>         <CFLOOP list="#lcategories#" index="category">
>         value is #category#
>         </cfloop>
>
>         </cfoutput>
>
> But I get the following error
>
> An error occurred while evaluating the expression:
>
>
> lcategories = #arrayToList (stitems.categories)#
>
> can anybody point where I am going wrong.
>
>
> Thanks,
>
> Manoj.
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to