I've got a query named getproj which returns columns named a1-a12.
I've got a series of drop downs corresponding to the above column names
which display values from 100-20 in descending order.
I'm trying to acccess the value of each colum using bracket notation but I'm
getting an error on the server of the sort "trying to access complex
variable types..."
Here's the statement I'm using:
<cfif getproj["a#t#"] IS i> selected</cfif>
The weird thing is that it appears to work locally. Here's my test code, I
know it's not a query object that I'm accessing, but it should work the same
as a structure right?
Anyone have any ideas?
------ code -------------
<cfloop index="t" from="1" to="12">
<cfset getproj["a#t#"] = 50>
</cfloop>
<cfoutput>
<cfloop index="t" from="1" to="12">
<td>
<select name="a#t#" onChange="calc_usage();">
<option value="0"></option>
<cfloop index="i" from="100" to="20" step="-10">
<option value="#i#"<cfif getproj["a#t#"] IS i>
selected</cfif>>#i#</option>
</cfloop>
</select>
</td>
</cfloop>
</cfoutput>
------ code -------------
<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:248444
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4