No, you cant do this because the VAR statements must be the first
thing after the cfarguments and before any other code.

If you are worried about typing the three characters each time, you can do this:

<cfset VAR localStruct = structNew() />

and then anything you stick in the localStruct will be vared, but
thats just as much if not more typing ;)

On 2/26/06, Ung, Seng <[EMAIL PROTECTED]> wrote:
>
> 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


--
Ryan Guill
BlueEyesDevelopment
[EMAIL PROTECTED]
www.ryanguill.com
(270) 217.2399
got google talk?  Chat me at [EMAIL PROTECTED]

The Coldfusion Open Application Library - COAL - http://coal.ryanguill.com

Use CF and SQL? Try qBrowser - http://www.ryanguill.com/docs/

www.ryanguill.com/
The Roman Empire: www.ryanguill.com/blog/


----------------------------------------------------------
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