Title: Message
How about this:
<!--- define a local scope ---> 
<cfset var local = structnew()>
<cfset local.tmpVar="a,b,c,d">
<cfloop list="#local.tmpVar#"   index="i">
  <cfset "local.#i#" = ""/>
 </cfloop>
Best Wishes,
Peter
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ung, Seng
Sent: Sunday, February 26, 2006 9:48 PM
To: CFCDev@cfczone.org
Subject: [CFCDev] reset Var Scoping?

Instead of setting each local variables one at a time.
 
 <cfset var a=""/>
  <cfset var b=""/>
  <cfset var c=""/>
  <cfset var d=""/>
 
I was trying to do this... but it does not worked?
 <cfset tmpVar="a,b,c,d">
 <cfloop list="#tmpVar#"   index="i">
  <cfset var #i# = ""/>
 </cfloop>
 
I wonder? can it be done? 
 
 
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to cfcdev@cfczone.org with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

An archive of the CFCDev list is available at www.mail-archive.com/cfcdev@cfczone.org
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to cfcdev@cfczone.org with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

An archive of the CFCDev list is available at www.mail-archive.com/cfcdev@cfczone.org

Reply via email to