Could somebody set me straight? First, I have a structure of arrays. I am
trying to populate the arrays while looping through the structure keys. I'm
getting all lost in the syntax and was hoping someone might be able to spot
what I need to do.
<cfset
"variables.mystruct.#query.dynamicKeyname#[#evaluate('arraylen(variables.mys
truct.#query.dynamicKeyname#)+1')#][1]" = value>
<cfset
"variables.mystruct.#query.dynamicKeyname#[#evaluate('arraylen(variables.mys
truct.#query.dynamicKeyname#)')#][2]" = value2>
Here's the error:
"Cannot set dynamic variable with name
'variables.tophead_struct.Consumer[1][1]'. The variable name is illegal.
Variable names must start with a letter and can include only letters,
numbers, and underscores."
It's getting the name correctly, but that's what it doesn't like. It's not
referring to it as an array, it's thinking I want an actual variable named
that (with the brackets, etc). I think it's because of the quotes wrapped
around the variable name, but it doesn't even get past the first period
without them.
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists