What do you need it for anyway?  Unlike any of the other scopes, all the
variables in the 'var' scope have to be explicitly defined by you with 'var'
statements, so there should never be a need for dynamic evaluation of on.

Cheers,
barneyb

> -----Original Message-----
> From: Jamie Jackson [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 23, 2004 12:20 PM
> To: CF-Talk
> Subject: Re: Scope name of method's local scope?
>
> Darn, I thought I was through with evaluate()s.
>
> Thanks,
> Jamie
>
> On Mon, 23 Feb 2004 10:37:02 -0800, in cf-talk you wrote:
>
> >I don't think the 'var' scope has a name.  At least I've
> never heard of one,
> >so I think you have to use evaluate().
> >
> >Cheers,
> >barneyb
> >
> >> -----Original Message-----
> >> From: Jamie Jackson [mailto:[EMAIL PROTECTED]
> >> Sent: Monday, February 23, 2004 10:31 AM
> >> To: CF-Talk
> >> Subject: Scope name of method's local scope?
> >>
> >> How do I evaluate the members of this list without
> evaluate()? I don't
> >> know what scope name the method's local scop uses. A bad example
> >> follows:
> >>
> >>   <cffunction name="badExample" access="public" output="yes"
> >> returntype="Collection">
> >>     <cfscript>
> >>       var i = "";
> >>       var myList = "foo,bar,fooBar";
> >>     </cfscript>
> >>     <cfloop index="i" list="myList">
> >> <!--- "variables" is the wrong scope, so what's the
> correct one? --->
> >>       <cfoutput>#variables[i]#<br></cfoutput>
> >>     </cfloop>
> >>   </cffunction>
> >>
> >
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to