Hi gary
you can try this.
<cfloop index="i" from="1" to="5">
<cfset temp = SetVariable("Value"&i, x)>
<cfoutput>#Evaluate("Value"& i)#<br></cfoutput>
</cfloop>
-Balaji
From: "Billy Cravens" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: RE: Settings vars with an index loop
Date: Wed, 20 Feb 2002 14:10:28 -0600
That won't work - Gary's wanting the variable name to be dynamic, not
assign the value to a pre-known name (in your example, var1). Your
example only assigns a value to var1, then reassigns a value to it. If
you did
#myvar1# (as Gary wants to do), you'd throw
an exception - instead, do:
---
Billy Cravens
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
Behalf Of Ron Mast
Sent: Wednesday, February 20, 2002 1:28 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Settings vars with an index loop
Try this:
#var1#
Ron
-----Original Message-----
From: Houk, Gary [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 1:22 PM
To: [EMAIL PROTECTED]
Subject: Settings vars with an index loop
Is there a way I can say:
by looping over it:
I know that above code fails, but that's the idea of what I'm trying to
get.
How can I do this?
TIA,
- Gary
------------------------------------------------------------------------
-
This email server is running an evaluation copy of the MailShield anti-
spam
software. Please contact your email administrator if you have any
questions
about this message. MailShield product info: www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org
------------------------------------------------------------------------
-
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info:
www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org
-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org
MSN Photos is the easiest way to share and print your photos:
Click Here
-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com