<cfset IndexNo = 1>
<cfloop query="MyQuery">
     <cfset "#MyVar##IndexNo#" = "some value">
</cfloop>

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Chad
Renando
Sent: Wednesday, May 18, 2005 1:14 PM
To: CFAussie Mailing List
Subject: [cfaussie] Dynamically Named Variables


What is the syntax please for creating dynamically named variables?

Say I dynmically created variables called MyVar1, MyVar2, etc..

I want to do something like:

<cfset IndexNo = 1>
<cfloop query="MyQuery">
     #MyVar##IndexNo#
</cfloop>

Cheers,

Chad
who looks on cbs.com before watching Survivor to see who gets voted off.

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/



---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to