>I'd rather it just create a variable with the field name and fill
> it with content instead of sticking it in a structure.

It may be helpful to know/recall that all local variables live in a scope 
structure called Variables. So you can just use that instead of the structure 
you create yourself:
    <cfset Variables[col] = the_db[col][currentRow]>

This should also be faster, because of the explicit scoping.

The syntax mentioned in the other replies works just fine, though:
    <cfset "#col#" = the_db[col][currentRow]>

Sixten

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266005
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