What do you get if you CFDUMP the value of
#session.questionDetails[1][currentID]# instead?

On Feb 2, 2008 8:04 PM, Richard White <[EMAIL PROTECTED]> wrote:
> Hi,
>
> i can reference a structure to get the value no problem like this:
>
> <cfoutput>#session.questionDetails[1].subjectID#</cfoutput>
>
> but i need to be able to get data out without physically knowing the name of 
> the element, as a simple example i am trying to do it like this:
>
> <cfset currentID = "subjectID">
>
> <cfoutput>#session.questionDetails[1][currentID]#</cfoutput>
>
> the error says that it cannot convert complex objects to simple values.
>
> this is the same even if i try it like this:
>
> <cfoutput>#session.questionDetails[1]["subjectID"]#</cfoutput>
>
> can anyone help me realise what i am doing wrong.
>
> thanks very much
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297991
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