I am trying to set a variable from an element of an array in a
structure:
<cfscript>
temperature = #leak2["#getKey2#"][3]#
</cfscript>

However I get the following error:
You have attempted to dereference a scalar variable of type class
java.math.BigDecimal as a structure with members.

GetKey2 is a string variable that I set (it is the key of the structure
that I want to retrieve), and the value of element 3 is of type float
that I want from the array. Temperature is the variable I am trying to
set, and Leak2 is the structure of arrays obviously. 

Can anyone tell me what I am doing wrong?  I have never nested complex
data types.
Thanks,
Ray

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:138380
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

ColdFusion MX 6.1, now 2.5 times faster. 
http://www.macromedia.com/software/coldfusion/productinfo/upgrade/jump/introducing.html?trackingid=ColdFusion_468x60g_HouseofFusion_carat_082803

Reply via email to