<cfset variables['SC#x#'] = listElement />

will also work.

On Mon, Aug 11, 2008 at 1:23 PM, Jeanmarie Richardson <[EMAIL PROTECTED]>wrote:

> Hello -- I am not sure if I am approaching this correctly BUT I have a list
> of 22 possible items where only 5 can be selected.  I then need to assign
> these five items to a list of variables - SC1, SC2, SC3, SC4, SC5.  I am
> trying to use CFSet within a CFLOOP tag (which loops through the list) to
> set up these variables but it is failing.  Could somone point me in the
> right direction?  Below is the CFLoop code I have been using.
>
> <cfoutput>
>        <cfset x=1>
>    <cfloop list="#saList#" index="listElement" delimiters="'">
>       <cfset SC#x# = #listElement#>
>        <cfset x =x+1>
>        </cfloop>
> </cfoutput>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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