it depends on what type of 'structure' it is:

if your currentrecord.ITEM_NAME is an array, then get its individual
elements as currentrecord.ITEM_NAME[cartentry]

but if ITEM_NAME1, ITEM_NAME2, ..., ITEM_NAMEx are keys in your
currentrecord structure, then do as others said:
currentrecord['ITEM_NAME' & cartentry]

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/


On 02/09/2009 08:15, Matthew Smith wrote:
> I am trying to do this, referencing the currentrecord structure:
> <cfloop from="1" to="#currentrecord.NUM_CART_ITEMS#" index="cartentry">
>       <cfset currententry = "currentrecord.ITEM_NAME#cartentry#">
>       #currententry#<br>
> </cfloop>
>
> what is the syntax? 
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325925
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to