> I'm new at Structures...I wanted to add variables to the
> "items" structure. The variables increment as they go thru
> a loop. The variable is called "qty" and as it goes thru
> the loop it would increment as "qty1", "qty2", etc thru a
> form. Here's the code. I'm having an obvious problem with the
> <CFSET items.qty#countlist#=qty(#countlist#)> which I know is
> not the right syntax...

You can use array syntax to reference your structure keys:

<cfset items["qty#countlist#"] = ...>

But I'm not sure exactly what you're trying to do with the rest of your
code. Currently, you have two places where you're creating hidden form
fields named "qty" within the same page, which probably won't give you the
result you want.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to