Simplest thing to do is 

#session.questionDetails[1]['#currentID#']#

-----Original Message-----
From: Richard White [mailto:[EMAIL PROTECTED] 
Sent: Saturday, February 02, 2008 5:04 AM
To: CF-Talk
Subject: structures

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:298051
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