Try this...i'm not sure .. but as I remember I was doing it that way
<cfoutput>
<cfloop index="i" from="1" to="#NumVars#">
#evaluate("MyVar#i#")#
</cfloop>
</cfouptut>
> -----Message d'origine-----
> De: Chase, John [SMTP:[EMAIL PROTECTED]]
> Date: Friday, August 25, 2000 2:21 PM
> �: '[EMAIL PROTECTED]'
> Objet: continuation on the 'assigning value to dynamic variable'
> thread posted Aug 23
>
> Hello,
> I was reading the "assigning value to dynamic variable" thread an have run
> across this before. In a simple example I was able to assign values to a
> variable MyVar1 through MyVar10 in this way:
>
> <cfloop index="i" from="1" to="#NumVars#">
> ...code omitted that builds tmp
> <cfset "MyVar#i#" = tmp>
> </cfloop>
>
> However, I had trouble trying to reference these vars in a loop later on:
>
> <cfloop index="i" from="1" to="#NumVars#">
> <cfoutput #MyVar&i#> <!---doesn't work--->
> </cfloop>
>
> Sorry if I missed something in the thread that should have given this
> away...
>
> > John Chase
> > Web Programmer
> > National Renewable Energy Laboratory
> > 1617 Cole Boulevard
> > Golden, CO 80401-3393
> > (303) 275-3620
> > (303) 275-3603 FAX
> >
> >
> --------------------------------------------------------------------------
> ----
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message
to [EMAIL PROTECTED] with 'unsubscribe' in the body.