Use a struxt with Somestruct[variable]
Variable will be evaluated before being accessed as a member od somestrict. On 3/24/09, Mike Little <[email protected]> wrote: > > hey guys, > > doing some very wrong here... > > for (i=1; i LTE listLen(currencies); i=i+1) { > product_price_"#i#" = evaluate('getProduct.product_price_' & i); > product_price_sale_"#i#" = evaluate('getProduct.product_price_sale_' & i); > } > > basically i want to assign a database field to the following vars... > > product_price_eur > product_price_sale_eur > product_price_usd > product_price_sale_usd > > my list.. > > currencies = "eur,usd" > > any help would be appreciated. > > mike > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320892 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

