Lee,

While people here are suggesting the "Variables" scope, please realize that
you can create any object to do this:

Ex. <cfset objMonths = StructNew() />

<cfloop index="I" from="1" to="3" step="1">
     <cfset objMonths["Month" & i] = .... />
</cfloop>
 

<cfdump var="#objMonths['Month' & 2]#">

.......................
Ben Nadel 
Web Developer
Nylon Technology
350 7th Ave.
Suite 1005
New York, NY 10001
212.691.1134 x 14
212.691.3477 fax
www.nylontechnology.com

Sanders: Lightspeed too slow?
Helmet: Yes we'll have to go right to ludacris speed.
-----Original Message-----
From: Rob Wilkerson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 18, 2006 10:24 AM
To: CF-Talk
Subject: Re: Evaluate vs ?

variables['cMonth' & i]

(assuming the variables scope, of course)

On 4/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> How would you "fix" this one?
>
> <Cfset Month1 = 0101>
> <Cfset Month2 = 0102>
> <Cfset Month3 = 0103>
>
> <Cfloop from="1" to="3" index="i">
> <cfset CMonth = "Month" & i>
> <cfset CCMonth = #Evaluate(CMonth)#>
>
> </cfloop>
>
>
> Lee Surma
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238000
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to