If you are going to use cfscript, you don't have a way to do a list
loop as you would in cfloop; i is a numeric in your code, not the list
item. So, you need listGetAt() to get the list item at i.

mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/



2009/3/25 Mike Little <[email protected]>:
>
> 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:320893
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to