Thanks Randy, forgot that one.

So, which is faster?
<cfset result = evaluate("myStruct.keyNo_#i#")>
<cfset result = StructFindValue( #myStruct#, "keyNo_#i#" )>
<cfset result = myStruct['keyNo_#i#']>

I'm guessing one of the last two, because of less conversion (like Julian mentioned)... string is implied as a key name.

Most likely the last one, because there's no recursive search for the key (ref CF docs for StructFindValue)?

Al

On 10/13/2010 9:45 AM, Randy Merrill wrote:
Can't you also reference it like this?:
myStruct['keyNo_#i#']

--
Open BlueDragon Public Mailing List
http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon
official manual: http://www.openbluedragon.org/manual/
Ready2Run CFML http://www.openbluedragon.org/openbdjam/
 
mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to